Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/dist/pdisk Cast argument to unsigned long for i386.



details:   https://anonhg.NetBSD.org/src/rev/d3d7c46af21e
branches:  trunk
changeset: 778695:d3d7c46af21e
user:      wiz <wiz%NetBSD.org@localhost>
date:      Sun Apr 08 20:41:18 2012 +0000

description:
Cast argument to unsigned long for i386.

diffstat:

 dist/pdisk/pdisk.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 1fa061e9e584 -r d3d7c46af21e dist/pdisk/pdisk.c
--- a/dist/pdisk/pdisk.c        Sun Apr 08 17:04:19 2012 +0000
+++ b/dist/pdisk/pdisk.c        Sun Apr 08 20:41:18 2012 +0000
@@ -169,12 +169,12 @@
     if (sizeof(DPME) != PBLOCK_SIZE) {
        fatal(-1, "Size of partition map entry (%lu) "
                "is not equal to block size (%d)\n",
-               sizeof(DPME), PBLOCK_SIZE);
+               (unsigned long)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",
-               sizeof(Block0), PBLOCK_SIZE);
+               (unsigned long)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",



Home | Main Index | Thread Index | Old Index