Module Name: src
Committed By: wiz
Date: Sun Apr 8 20:41:18 UTC 2012
Modified Files:
src/dist/pdisk: pdisk.c
Log Message:
Cast argument to unsigned long for i386.
To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/dist/pdisk/pdisk.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/dist/pdisk/pdisk.c
diff -u src/dist/pdisk/pdisk.c:1.21 src/dist/pdisk/pdisk.c:1.22
--- src/dist/pdisk/pdisk.c:1.21 Sun Apr 8 17:04:19 2012
+++ src/dist/pdisk/pdisk.c Sun Apr 8 20:41:18 2012
@@ -169,12 +169,12 @@ main(int argc, char **argv)
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",