Fix compiler warnings.

This commit is contained in:
Yang Tse 2006-07-29 09:15:03 +00:00
parent 305671e2ab
commit aa791ee5cf
2 changed files with 9 additions and 7 deletions

View file

@ -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);