]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
Gisle-fix: constified the 'interface' argument.
authorDaniel Stenberg <daniel@haxx.se>
Wed, 5 May 2004 13:42:23 +0000 (13:42 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 5 May 2004 13:42:23 +0000 (13:42 +0000)
lib/if2ip.c
lib/if2ip.h

index 63a634099eca083c5dd05c513c7282c93429b4d5..94de81f8a573f283cd1d6070d4801e32b037bdae 100644 (file)
@@ -81,7 +81,7 @@
 
 #define SYS_ERROR -1
 
-char *Curl_if2ip(char *interface, char *buf, int buf_size)
+char *Curl_if2ip(const char *interface, char *buf, int buf_size)
 {
   int dummy;
   char *ip=NULL;
@@ -125,8 +125,11 @@ char *Curl_if2ip(char *interface, char *buf, int buf_size)
 
 /* -- end of if2ip() -- */
 #else
-char *Curl_if2ip(char *interface, char *buf, int buf_size)
+char *Curl_if2ip(const char *interface, char *buf, int buf_size)
 {
+    (void) interface;
+    (void) buf;
+    (void) buf_size;
     return NULL;
 }
 #endif
index f2c3a541fc86748f5bc464c6283382a424f6b330..30a6540a4e4d3f156d69e5bd8ba6b5f8d23eb70f 100644 (file)
@@ -26,7 +26,7 @@
 
 #if !defined(WIN32) && !defined(__BEOS__) && !defined(__CYGWIN32__) && \
     !defined(__riscos__) && !defined(__INTERIX)
-extern char *Curl_if2ip(char *interface, char *buf, int buf_size);
+extern char *Curl_if2ip(const char *interface, char *buf, int buf_size);
 #else
 #define Curl_if2ip(a,b,c) NULL
 #endif