diff options
author | Yang Tse <yangsita@gmail.com> | 2008-07-21 09:23:56 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2008-07-21 09:23:56 +0000 |
commit | 51e84c77e72a2c6554ddd3c2782c48b6c0b40479 (patch) | |
tree | 7820254aec2e8cfdcc74a27ce17eb3ebe5937227 | |
parent | 775d9e06152f4b46e568389ab7cdcee45ebe2a5c (diff) |
fix compiler warning: implicit conversion from "long" to "int"
-rw-r--r-- | tests/server/tftpd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/server/tftpd.c b/tests/server/tftpd.c index 67daa15ac..c50ea1949 100644 --- a/tests/server/tftpd.c +++ b/tests/server/tftpd.c @@ -119,7 +119,7 @@ static void mysignal(int, void (*func)(int)); #define PKTSIZE SEGSIZE+4 struct formats; -static int tftp(struct testcase *test, struct tftphdr *tp, int size); +static int tftp(struct testcase *test, struct tftphdr *tp, ssize_t size); static void nak(int error); static void sendtftp(struct testcase *test, struct formats *pf); static void recvtftp(struct testcase *test, struct formats *pf); @@ -571,7 +571,7 @@ struct formats { /* * Handle initial connection protocol. */ -static int tftp(struct testcase *test, struct tftphdr *tp, int size) +static int tftp(struct testcase *test, struct tftphdr *tp, ssize_t size) { char *cp; int first = 1, ecode; |