summaryrefslogtreecommitdiff
path: root/src/nlmsg.c
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2010-10-19 12:12:00 +0200
committerJan Engelhardt <jengelh@medozas.de>2010-10-19 12:12:16 +0200
commit5b78d99986220c8aacfb5668392b7bcecb80964c (patch)
tree09bc4004a48bb1ff343c8389ff108c1848d0ad13 /src/nlmsg.c
parente6ea95100f2028891450af7b6b6830f0e01ee13d (diff)
downloadlibmnl-5b78d99986220c8aacfb5668392b7bcecb80964c.tar.gz
libmnl-5b78d99986220c8aacfb5668392b7bcecb80964c.zip
build: resolve compiler warnings
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@medozas.de>
Diffstat (limited to 'src/nlmsg.c')
-rw-r--r--src/nlmsg.c2
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]);