mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
Gisle-fix: constified the 'interface' argument.
This commit is contained in:
parent
bc5b2fa12c
commit
b2c290e40e
@ -81,7 +81,7 @@
|
|||||||
|
|
||||||
#define SYS_ERROR -1
|
#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;
|
int dummy;
|
||||||
char *ip=NULL;
|
char *ip=NULL;
|
||||||
@ -125,8 +125,11 @@ char *Curl_if2ip(char *interface, char *buf, int buf_size)
|
|||||||
|
|
||||||
/* -- end of if2ip() -- */
|
/* -- end of if2ip() -- */
|
||||||
#else
|
#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;
|
return NULL;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
|
|
||||||
#if !defined(WIN32) && !defined(__BEOS__) && !defined(__CYGWIN32__) && \
|
#if !defined(WIN32) && !defined(__BEOS__) && !defined(__CYGWIN32__) && \
|
||||||
!defined(__riscos__) && !defined(__INTERIX)
|
!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
|
#else
|
||||||
#define Curl_if2ip(a,b,c) NULL
|
#define Curl_if2ip(a,b,c) NULL
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user