summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-05-05 13:42:23 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-05-05 13:42:23 +0000
commitb2c290e40e73a8c2b7a0a15a967c1abe4d603382 (patch)
tree049b727148a57b1a990c3c90a06223cd35a8832d
parentbc5b2fa12c6e2e4f0f41623126311927bf040ead (diff)
downloadcurl-b2c290e40e73a8c2b7a0a15a967c1abe4d603382.tar.gz
Gisle-fix: constified the 'interface' argument.
-rw-r--r--lib/if2ip.c7
-rw-r--r--lib/if2ip.h2
2 files changed, 6 insertions, 3 deletions
diff --git a/lib/if2ip.c b/lib/if2ip.c
index 63a634099..94de81f8a 100644
--- a/lib/if2ip.c
+++ b/lib/if2ip.c
@@ -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
diff --git a/lib/if2ip.h b/lib/if2ip.h
index f2c3a541f..30a6540a4 100644
--- a/lib/if2ip.h
+++ b/lib/if2ip.h
@@ -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