Commit 48b9ea43 authored by Gisle Vanem's avatar Gisle Vanem Committed by Jay Satiro
Browse files

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
parent 6da44edf
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -49,7 +49,7 @@ typedef enum {
} PlatformIdentifier;
} PlatformIdentifier;


/* We use our own typedef here since some headers might lack this */
/* 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 */
/* This is used instread of if_nametoindex if available on Windows */
IF_NAMETOINDEX_FN Curl_if_nametoindex;
IF_NAMETOINDEX_FN Curl_if_nametoindex;