[prev in list] [next in list] [prev in thread] [next in thread]
List: wine-devel
Subject: [PATCH] dhcpcsvc/tests: Use wide-char string literals.
From: Michael Stefaniuc <mstefani () winehq ! org>
Date: 2020-09-30 21:14:54
Message-ID: 20200930211456.349651-8-mstefani () winehq ! org
[Download RAW message or body]
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
---
Can't use const or inline the variable:
dlls/dhcpcsvc/tests/dhcpcsvc.c:67:70: warning: passing argument 3 of \
'DhcpRequestParams' discards 'const' qualifier from pointer target type \
[-Wdiscarded-qualifiers]
dlls/dhcpcsvc/tests/dhcpcsvc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/dhcpcsvc/tests/dhcpcsvc.c b/dlls/dhcpcsvc/tests/dhcpcsvc.c
index 8b47fe57d55..547fb515329 100644
--- a/dlls/dhcpcsvc/tests/dhcpcsvc.c
+++ b/dlls/dhcpcsvc/tests/dhcpcsvc.c
@@ -43,7 +43,7 @@ static IP_ADAPTER_ADDRESSES *get_adapters(void)
static void test_DhcpRequestParams(void)
{
- static WCHAR nosuchW[] = \
{'n','o','s','u','c','h','a','d','a','p','t','e','r',0}; + static WCHAR nosuchW[] \
= L"nosuchadapter"; DHCPCAPI_PARAMS params[6];
DHCPCAPI_PARAMS_ARRAY send_params, recv_params;
IP_ADAPTER_ADDRESSES *adapters, *ptr;
--
2.26.2
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic