Skip to content

Commit

Permalink
windows: suppress a warning
Browse files Browse the repository at this point in the history
    com.c: In function 'grn_com_recv':
    com.c:861:3: warning: format '%u' expects argument of type 'unsigned int', but argument 7 has type 'u_long' [-Wformat=]
       GRN_LOG(ctx, GRN_LOG_INFO,
       ^
  • Loading branch information
kou committed Oct 28, 2014
1 parent c6d9fc7 commit 9fc39c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/com.c
Expand Up @@ -858,7 +858,7 @@ grn_com_recv(grn_ctx *ctx, grn_com *com, grn_com_header *header, grn_obj *buf)
}
}
} while (rest);
GRN_LOG(ctx, GRN_LOG_INFO, "recv (%d,%x,%d,%02x,%02x,%04x)", ntohl(header->size), header->flags, header->proto, header->qtype, header->level, header->status);
GRN_LOG(ctx, GRN_LOG_INFO, "recv (%lu,%x,%d,%02x,%02x,%04x)", ntohl(header->size), header->flags, header->proto, header->qtype, header->level, header->status);
{
uint8_t proto = header->proto;
size_t value_size = ntohl(header->size);
Expand Down

0 comments on commit 9fc39c5

Please sign in to comment.