aboutsummaryrefslogtreecommitdiff
path: root/tests/server/tftpd.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2006-07-29 09:15:03 +0000
committerYang Tse <yangsita@gmail.com>2006-07-29 09:15:03 +0000
commitaa791ee5cf4d3e432ba421a01f72bc23a78724c2 (patch)
tree73b2fa73349078107b9a59f014eb6fa9ab5d5a37 /tests/server/tftpd.c
parent305671e2ab494fcedeb55a921fa027c869c4e78d (diff)
Fix compiler warnings.
Diffstat (limited to 'tests/server/tftpd.c')
-rw-r--r--tests/server/tftpd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/server/tftpd.c b/tests/server/tftpd.c
index 249753ead..26f52f23a 100644
--- a/tests/server/tftpd.c
+++ b/tests/server/tftpd.c
@@ -814,7 +814,7 @@ static void recvtftp(struct testcase *test, struct formats *pf)
struct tftphdr *dp;
struct tftphdr *ap; /* ack buffer */
unsigned short block = 0;
- int n, size;
+ ssize_t n, size;
#if defined(HAVE_ALARM) && defined(SIGALRM)
mysignal(SIGALRM, timer);
#endif
@@ -861,7 +861,7 @@ send_ack:
}
}
- size = writeit(test, &dp, n - 4, pf->f_convert);
+ size = writeit(test, &dp, (int)(n - 4), pf->f_convert);
if (size != (n-4)) { /* ahem */
if (size < 0)
nak(errno + 100);