pop3: Fix POP3_TYPE_ANY signed compilation warning
authorMelissa Mears <myriachan@cox.net>
Tue, 3 Dec 2013 23:56:39 +0000 (15:56 -0800)
committerSteve Holme <steve_holme@hotmail.com>
Wed, 4 Dec 2013 20:18:44 +0000 (20:18 +0000)
commitb0b5b51193566960d0232d55a39daad70c9026f4
treebd21cf4cd8bf8bf86da4377e32c3576d5f2463bc
parentff9b66a8d4abb2fd92b12ae8ae3e4e7f39856af7
pop3: Fix POP3_TYPE_ANY signed compilation warning

POP3_TYPE_ANY, or ~0, is written to pop3c->preftype in lib/pop3c.c, an
unsigned int variable.  The result of ~0 is -1, which caused a warning
due to writing a negative number to an unsigned variable.  To fix this,
make the expression ~0U so that its value is considered the unsigned
number UINT_MAX which is what SASL_AUTH_ANY does in curl_sasl.h.
lib/pop3.h