diff options
author | Daniel Stenberg <daniel@haxx.se> | 2010-03-29 16:30:35 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2010-03-29 16:30:35 +0200 |
commit | d1837ad90a31bb70be4d44b4f745ae696e21e972 (patch) | |
tree | e2f547909404b02cff985a1cccf37927eee78072 /lib/pop3.c | |
parent | fd10ed56d5708ffee057b2c92ae9cfd77ccec767 (diff) |
use (s)size_t for string lengths to fix compiler warns
Diffstat (limited to 'lib/pop3.c')
-rw-r--r-- | lib/pop3.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/pop3.c b/lib/pop3.c index ff929b09c..4894f3c44 100644 --- a/lib/pop3.c +++ b/lib/pop3.c @@ -990,9 +990,9 @@ CURLcode Curl_pop3_write(struct connectdata *conn, 0d 0a 2e 0d 0a. This marker can of course be spread out over up to 5 different data chunks. Deal with it! */ struct pop3_conn *pop3c = &conn->proto.pop3c; - int checkmax = (nread >= POP3_EOB_LEN?POP3_EOB_LEN:nread); - int checkleft = POP3_EOB_LEN-pop3c->eob; - int check = (checkmax >= checkleft?checkleft:checkmax); + size_t checkmax = (nread >= POP3_EOB_LEN?POP3_EOB_LEN:nread); + size_t checkleft = POP3_EOB_LEN-pop3c->eob; + size_t check = (checkmax >= checkleft?checkleft:checkmax); if(!memcmp(POP3_EOB, &str[nread - check], check)) { /* substring match */ |