Reduce compiler warnings on Windows

This commit is contained in:
Asanka Herath
2010-06-03 00:59:54 -04:00
parent f456b70013
commit 0d09c879f3
4 changed files with 4 additions and 4 deletions

View File

@@ -223,7 +223,7 @@ arg_printusage_i18n (struct getargs *args,
const char *usage,
const char *progname,
const char *extra_string,
char *(i18n)(const char *))
char *(*i18n)(const char *))
{
size_t i, max_len = 0;
char buf[128];

View File

@@ -104,7 +104,7 @@ arg_printusage_i18n (struct getargs *args,
const char *usage,
const char *progname,
const char *extra_string,
char *(i18n)(const char *));
char *(*i18n)(const char *));
ROKEN_LIB_FUNCTION void ROKEN_LIB_CALL
free_getarg_strings (getarg_strings *);

View File

@@ -77,7 +77,7 @@ rk_getifaddrs(struct ifaddrs **ifpp)
ZeroMemory(il, il_len);
if (WSAIoctl(s, SIO_GET_INTERFACE_LIST, NULL, 0,
(LPVOID) il, il_len, &cbret,
(LPVOID) il, (DWORD) il_len, &cbret,
NULL, NULL) == 0) {
il_len = cbret;
break;