]> granicus.if.org Git - curl/commitdiff
system_win32: fix function prototype
authorGisle Vanem <gisle.vanem@gmail.com>
Wed, 29 May 2019 18:37:10 +0000 (14:37 -0400)
committerJay Satiro <raysatiro@yahoo.com>
Wed, 29 May 2019 18:37:39 +0000 (14:37 -0400)
- 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

lib/system_win32.h

index 95f4af8a7aa435285a815b72872e5a4578637318..c07cf1fb725c6a000db406c98b22c4a52c35b7f6 100644 (file)
@@ -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;