summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaMont Jones <lamont@parisc-linux.org>2006-01-05 17:14:44 +0000
committerLaMont Jones <lamont@parisc-linux.org>2006-01-05 17:14:44 +0000
commit27d831949c8c415ccd8b837ba6fc1bd279703446 (patch)
treeffc373e38ce8a9d83e16ce60ce9e212ba7710299
parent4a3c8576ee50e09f41b02e498ae66623add5960a (diff)
downloadpalo-27d831949c8c415ccd8b837ba6fc1bd279703446.tar.gz
64-bit cleanliness is good
-rw-r--r--debian/changelog3
-rw-r--r--palo/palo.c6
2 files changed, 5 insertions, 4 deletions
diff --git a/debian/changelog b/debian/changelog
index f49f641..68452c4 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,8 +2,9 @@ palo (1.13) unstable; urgency=low
* One more workaround for linux-kernel-headers differences: __swab64
shows up on 64-bit machines on ubuntu.
+ * 64-bit pointer casting fixes.
- -- LaMont Jones <lamont@debian.org> Thu, 5 Jan 2006 09:56:36 -0700
+ -- LaMont Jones <lamont@debian.org> Thu, 5 Jan 2006 10:08:58 -0700
palo (1.12) unstable; urgency=low
diff --git a/palo/palo.c b/palo/palo.c
index 996308d..7f554be 100644
--- a/palo/palo.c
+++ b/palo/palo.c
@@ -323,7 +323,7 @@ lookfor(int media, int target)
float mediasize = fsize(media);
targetptr = mmap(0, targetsize, PROT_READ, MAP_SHARED, target, 0);
- if ((int) targetptr == -1)
+ if ((long) targetptr == -1)
{
perror("mmap(targetptr)");
return -1;
@@ -712,8 +712,8 @@ main(int argc, char *argv[])
assert(sizeof (struct firstblock) == 2048);
{
struct firstblock f;
- assert((unsigned)&f.kern32_offset - (unsigned)&f == 8);
- assert((unsigned)&f.ipl_addr - (unsigned)&f == 0xf0);
+ assert((unsigned long)&f.kern32_offset - (unsigned long)&f == 8);
+ assert((unsigned long)&f.ipl_addr - (unsigned long)&f == 0xf0);
}
fputs("palo version " PALOVERSION " ", stdout);