nlmsg.c: In function "mnl_nlmsg_fprintf": nlmsg.c:260:4: warning: format "%.3d" expects type "int", but argument 3 has type "size_t" Signed-off-by: Jan Engelhardt <jengelh@xxxxxxxxxx> --- src/nlmsg.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/nlmsg.c b/src/nlmsg.c index af08671..3cec2a2 100644 --- a/src/nlmsg.c +++ b/src/nlmsg.c @@ -255,7 +255,7 @@ void mnl_nlmsg_fprintf(FILE *fd, const struct nlmsghdr *nlh) for (i=sizeof(struct nlmsghdr); i<nlh->nlmsg_len; i+=4) { char *b = (char *) nlh; - fprintf(fd, "(%.3d) %.2x %.2x %.2x %.2x | ", i, + fprintf(fd, "(%03zu) %.2x %.2x %.2x %.2x | ", i, 0xff & b[i], 0xff & b[i+1], 0xff & b[i+2], 0xff & b[i+3]); -- 1.7.1 -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html