From: Gisle Vanem Date: Wed, 29 May 2019 18:37:10 +0000 (-0400) Subject: system_win32: fix function prototype X-Git-Tag: curl-7_65_1~17 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=48b9ea4;p=thirdparty%2Fcurl.git system_win32: fix function prototype - Change if_nametoindex parameter type from char * to const char *. Follow-up to 09eef8af from this morning. Bug: https://github.com/curl/curl/commit/09eef8af#r33716067 --- diff --git a/lib/system_win32.h b/lib/system_win32.h index 95f4af8a7a..c07cf1fb72 100644 --- a/lib/system_win32.h +++ b/lib/system_win32.h @@ -49,7 +49,7 @@ typedef enum { } PlatformIdentifier; /* We use our own typedef here since some headers might lack this */ -typedef unsigned int(WINAPI *IF_NAMETOINDEX_FN)(char *); +typedef unsigned int(WINAPI *IF_NAMETOINDEX_FN)(const char *); /* This is used instread of if_nametoindex if available on Windows */ IF_NAMETOINDEX_FN Curl_if_nametoindex;