diff options
author | Daniel Stenberg <daniel@haxx.se> | 2005-12-05 14:10:48 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2005-12-05 14:10:48 +0000 |
commit | 272231fb09052e97a218d9ea00db57692d59c1de (patch) | |
tree | ea9eaa8fcbbd463489490a51052d6d7572ce1539 /tests/server/tftpd.c | |
parent | 67b4d9b232923ec2ba5bbb2f929254cf95e953db (diff) |
Another Yang Tse warning cleanup raid!
Diffstat (limited to 'tests/server/tftpd.c')
-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 eb57a1405..cf85623af 100644 --- a/tests/server/tftpd.c +++ b/tests/server/tftpd.c @@ -222,7 +222,7 @@ static void read_ahead(struct testcase *test, if (convert == 0) { /* The former file reading code did this: b->counter = read(fileno(file), dp->th_data, SEGSIZE); */ - int copy_n = MIN(SEGSIZE, test->rcount); + size_t copy_n = MIN(SEGSIZE, test->rcount); memcpy(dp->th_data, test->rptr, copy_n); /* decrease amount, advance pointer */ @@ -892,7 +892,7 @@ static void nak(int error) tp->th_code = EUNDEF; /* set 'undef' errorcode */ } strcpy(tp->th_msg, pe->e_msg); - length = strlen(pe->e_msg); + length = (int)strlen(pe->e_msg); tp->th_msg[length] = '\0'; length += 5; if (send(peer, buf, length, 0) != length) |