aboutsummaryrefslogtreecommitdiff
path: root/tests/server/tftpd.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2010-02-19 18:02:38 +0000
committerYang Tse <yangsita@gmail.com>2010-02-19 18:02:38 +0000
commit048438345aed2acbb044e107946a804bc2d02363 (patch)
tree5b1621c5667f12d2d83fd71e4de4c3531ed44204 /tests/server/tftpd.c
parent6e461e45c3623f53c682a7d08a2c38f096cc5b17 (diff)
fix compiler warning
Diffstat (limited to 'tests/server/tftpd.c')
-rw-r--r--tests/server/tftpd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/server/tftpd.c b/tests/server/tftpd.c
index 8822f4bb6..97669896c 100644
--- a/tests/server/tftpd.c
+++ b/tests/server/tftpd.c
@@ -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++;
}
}