mirror of
https://github.com/curl/curl.git
synced 2026-08-25 17:03:31 +03:00
Another Yang Tse warning cleanup raid!
This commit is contained in:
parent
67b4d9b232
commit
272231fb09
5 changed files with 7 additions and 7 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue