Remove implicit casts
Cast parameters of htonl in uint32_t in IN6_IS_ADDR_GLOBAL and IN6_IS_ADDR_ULA definitions. Remove comparison with 0 in while statement of vfmatch, http_SendMessage and http_MakeMessage.
This commit is contained in:
@@ -383,7 +383,7 @@ int http_SendMessage(SOCKINFO *info, int *TimeOut, const char *fmt, ...)
|
||||
|
||||
memset(Chunk_Header, 0, sizeof(Chunk_Header));
|
||||
va_start(argp, fmt);
|
||||
while ((c = *fmt++) != 0) {
|
||||
while ((c = *fmt++)) {
|
||||
if (c == 'I') {
|
||||
Instr = va_arg(argp, struct SendInstruction *);
|
||||
if (Instr->ReadSendSize >= 0)
|
||||
@@ -1636,7 +1636,7 @@ int http_MakeMessage(membuffer *buf, int http_major_version,
|
||||
|
||||
memset(tempbuf, 0, sizeof(tempbuf));
|
||||
va_start(argp, fmt);
|
||||
while ((c = *fmt++) != 0) {
|
||||
while ((c = *fmt++)) {
|
||||
if (c == 's') {
|
||||
/* C string */
|
||||
s = (char *)va_arg(argp, char *);
|
||||
|
Reference in New Issue
Block a user