mirror of
https://github.com/curl/curl.git
synced 2026-08-24 12:33:37 +03:00
Fix compiler warnings.
This commit is contained in:
parent
305671e2ab
commit
aa791ee5cf
2 changed files with 9 additions and 7 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue