From bd071aa31da06b58a6d853d7d2af37111de99b9e Mon Sep 17 00:00:00 2001 From: christos Date: Sun, 8 Apr 2012 21:18:46 +0000 Subject: print sizeof() with %zu --- dist/pdisk/pdisk.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'dist') diff --git a/dist/pdisk/pdisk.c b/dist/pdisk/pdisk.c index a9aa92d0b18..7e24cef72ac 100644 --- a/dist/pdisk/pdisk.c +++ b/dist/pdisk/pdisk.c @@ -167,14 +167,12 @@ main(int argc, char **argv) init_program_name(argv); if (sizeof(DPME) != PBLOCK_SIZE) { - fatal(-1, "Size of partition map entry (%lu) " - "is not equal to block size (%d)\n", - (unsigned long)sizeof(DPME), PBLOCK_SIZE); + fatal(-1, "Size of partition map entry (%zu) " + "is not equal to block size (%d)\n", sizeof(DPME), PBLOCK_SIZE); } if (sizeof(Block0) != PBLOCK_SIZE) { - fatal(-1, "Size of block zero structure (%lu) " - "is not equal to block size (%d)\n", - (unsigned long)sizeof(Block0), PBLOCK_SIZE); + fatal(-1, "Size of block zero structure (%zu) " + "is not equal to block size (%d)\n", sizeof(Block0), PBLOCK_SIZE); } if (strcmp(VERSION, get_version_string()) != 0) { fatal(-1, "Version string static form (%s) does not match dynamic form (%s)\n", -- cgit r
summaryrefslogtreecommitdiff
path: root/sys/rump/net/lib/libnetinet/dummy.c
AgeCommit message (Expand)Author
2008-10-16Deal with the ld.so/linkset brokenness and compile all of libnetpooka