aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-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);