diff options
| author | christos <christos@NetBSD.org> | 2012-04-08 21:18:46 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2012-04-08 21:18:46 +0000 |
| commit | bd071aa31da06b58a6d853d7d2af37111de99b9e (patch) | |
| tree | 295cce795ea5b4cdf8b9e51f23fdc090c7a69d21 /dist | |
| parent | 536bfd759bb03737809bbf50ec7916c49d841a4c (diff) | |
print sizeof() with %zu
Diffstat (limited to 'dist')
| -rw-r--r-- | dist/pdisk/pdisk.c | 10 |
1 files changed, 4 insertions, 6 deletions
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", |
