1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 15:48:49 -05:00

const qualifier in getnameinfo check

This commit is contained in:
Yang Tse 2005-12-17 02:32:55 +00:00
parent 03af76b631
commit b7f447f8d8
2 changed files with 4 additions and 4 deletions

View File

@ -229,7 +229,7 @@ AC_DEFUN([CURL_FUNC_GETNAMEINFO_ARGTYPES], [
#include <netdb.h>
#endif
#endif
extern int getnameinfo($gni_arg1, $gni_arg2,
extern int getnameinfo(const $gni_arg1, $gni_arg2,
char *, $gni_arg46,
char *, $gni_arg46,
$gni_arg7);
@ -241,7 +241,7 @@ AC_DEFUN([CURL_FUNC_GETNAMEINFO_ARGTYPES], [
char *serv=0;
$gni_arg46 servlen=0;
$gni_arg7 flags=0;
getnameinfo(sa, salen, host, hostlen, serv, servlen, flags);
int res = getnameinfo(sa, salen, host, hostlen, serv, servlen, flags);
])
],[
curl_cv_func_getnameinfo_args="$gni_arg1,$gni_arg2,$gni_arg46,$gni_arg7"

View File

@ -229,7 +229,7 @@ AC_DEFUN([CURL_FUNC_GETNAMEINFO_ARGTYPES], [
#include <netdb.h>
#endif
#endif
extern int getnameinfo($gni_arg1, $gni_arg2,
extern int getnameinfo(const $gni_arg1, $gni_arg2,
char *, $gni_arg46,
char *, $gni_arg46,
$gni_arg7);
@ -241,7 +241,7 @@ AC_DEFUN([CURL_FUNC_GETNAMEINFO_ARGTYPES], [
char *serv=0;
$gni_arg46 servlen=0;
$gni_arg7 flags=0;
getnameinfo(sa, salen, host, hostlen, serv, servlen, flags);
int res = getnameinfo(sa, salen, host, hostlen, serv, servlen, flags);
])
],[
curl_cv_func_getnameinfo_args="$gni_arg1,$gni_arg2,$gni_arg46,$gni_arg7"