mirror of
https://github.com/curl/curl.git
synced 2026-07-23 23:07:18 +03:00
fix compiler warning
This commit is contained in:
parent
6e461e45c3
commit
048438345a
14 changed files with 111 additions and 16 deletions
|
|
@ -6,20 +6,33 @@ useful = getpart.c getpart.h $(top_srcdir)/lib/strequal.c \
|
|||
|
||||
resolve_SOURCES= resolve.c util.c util.h $(useful)
|
||||
resolve_LDADD = @TEST_SERVER_LIBS@
|
||||
resolve_CFLAGS = $(AM_CFLAGS)
|
||||
|
||||
sws_SOURCES= sws.c util.c util.h $(useful)
|
||||
sws_SOURCES= sws.c util.c util.h $(useful) \
|
||||
$(top_srcdir)/lib/warnless.c \
|
||||
$(top_srcdir)/lib/warnless.h
|
||||
sws_LDADD = @TEST_SERVER_LIBS@
|
||||
sws_CFLAGS = $(AM_CFLAGS)
|
||||
|
||||
sockfilt_SOURCES = sockfilt.c util.c util.h $(useful) \
|
||||
$(top_srcdir)/lib/inet_pton.c
|
||||
$(top_srcdir)/lib/inet_pton.c \
|
||||
$(top_srcdir)/lib/warnless.c \
|
||||
$(top_srcdir)/lib/warnless.h
|
||||
sockfilt_LDADD = @TEST_SERVER_LIBS@
|
||||
sockfilt_CFLAGS = $(AM_CFLAGS)
|
||||
|
||||
getpart_SOURCES= testpart.c $(useful)
|
||||
# This is needed because of (unused) network debugging functions in memdebug.c
|
||||
getpart_LDADD = @TEST_SERVER_LIBS@
|
||||
getpart_CFLAGS = $(AM_CFLAGS)
|
||||
|
||||
tftpd_SOURCES = tftpd.c util.c util.h $(useful) tftp.h
|
||||
tftpd_SOURCES = tftpd.c util.c util.h $(useful) tftp.h \
|
||||
$(top_srcdir)/lib/warnless.c \
|
||||
$(top_srcdir)/lib/warnless.h
|
||||
tftpd_LDADD = @TEST_SERVER_LIBS@
|
||||
tftpd_CFLAGS = $(AM_CFLAGS)
|
||||
|
||||
rtspd_SOURCES = rtspd.c util.c util.h $(useful)
|
||||
rtspd_SOURCES = rtspd.c util.c util.h $(useful) \
|
||||
$(top_srcdir)/lib/warnless.c \
|
||||
$(top_srcdir)/lib/warnless.h
|
||||
rtspd_LDADD = @TEST_SERVER_LIBS@
|
||||
rtspd_CFLAGS = $(AM_CFLAGS)
|
||||
|
|
|
|||
|
|
@ -59,6 +59,7 @@
|
|||
#include "curlx.h" /* from the private lib dir */
|
||||
#include "getpart.h"
|
||||
#include "util.h"
|
||||
#include "warnless.h"
|
||||
|
||||
/* include memdebug.h last */
|
||||
#include "memdebug.h"
|
||||
|
|
@ -1234,7 +1235,7 @@ int main(int argc, char *argv[])
|
|||
argv[arg]);
|
||||
return 0;
|
||||
}
|
||||
port = (unsigned short)(ulnum & 0xFFFFUL);
|
||||
port = Curl_ultous(ulnum);
|
||||
arg++;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -110,6 +110,7 @@
|
|||
#include "getpart.h"
|
||||
#include "inet_pton.h"
|
||||
#include "util.h"
|
||||
#include "warnless.h"
|
||||
|
||||
/* include memdebug.h last */
|
||||
#include "memdebug.h"
|
||||
|
|
@ -898,7 +899,7 @@ int main(int argc, char *argv[])
|
|||
argv[arg]);
|
||||
return 0;
|
||||
}
|
||||
port = (unsigned short)(ulnum & 0xFFFFUL);
|
||||
port = Curl_ultous(ulnum);
|
||||
arg++;
|
||||
}
|
||||
}
|
||||
|
|
@ -915,7 +916,7 @@ int main(int argc, char *argv[])
|
|||
argv[arg]);
|
||||
return 0;
|
||||
}
|
||||
connectport = (unsigned short)(ulnum & 0xFFFFUL);
|
||||
connectport = Curl_ultous(ulnum);
|
||||
arg++;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -60,6 +60,7 @@
|
|||
#include "curlx.h" /* from the private lib dir */
|
||||
#include "getpart.h"
|
||||
#include "util.h"
|
||||
#include "warnless.h"
|
||||
|
||||
/* include memdebug.h last */
|
||||
#include "memdebug.h"
|
||||
|
|
@ -1138,7 +1139,7 @@ int main(int argc, char *argv[])
|
|||
argv[arg]);
|
||||
return 0;
|
||||
}
|
||||
port = (unsigned short)(ulnum & 0xFFFFUL);
|
||||
port = Curl_ultous(ulnum);
|
||||
arg++;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -97,6 +97,7 @@
|
|||
#include "curlx.h" /* from the private lib dir */
|
||||
#include "getpart.h"
|
||||
#include "util.h"
|
||||
#include "warnless.h"
|
||||
|
||||
/* include memdebug.h last */
|
||||
#include "memdebug.h"
|
||||
|
|
@ -716,7 +717,7 @@ int main(int argc, char **argv)
|
|||
argv[arg]);
|
||||
return 0;
|
||||
}
|
||||
port = (unsigned short)(ulnum & 0xFFFFUL);
|
||||
port = Curl_ultous(ulnum);
|
||||
arg++;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue