summaryrefslogtreecommitdiff
path: root/bin/ksh
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2002-10-23 14:23:16 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2002-10-23 14:23:16 +0000
commita0a889ba08b0143f889bfd09f86f5111cb5a2308 (patch)
treef49d0d9bac5167b18da583a7cecd2fdf4a465744 /bin/ksh
parentdb0dfc1e5e65b8f62e7ee1c09359956563d37ec3 (diff)
Move a cast from LHS to RHS to quiet a "cast from pointer to integer
of different size" warning on 64-bit platforms.
Diffstat (limited to 'bin/ksh')
-rw-r--r--bin/ksh/history.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ksh/history.c b/bin/ksh/history.c
index dd1493eb879..db9d0d851a3 100644
--- a/bin/ksh/history.c
+++ b/bin/ksh/history.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: history.c,v 1.14 2002/09/06 19:45:14 deraadt Exp $ */
+/* $OpenBSD: history.c,v 1.15 2002/10/23 14:23:15 millert Exp $ */
/*
* command history
@@ -863,7 +863,7 @@ hist_init(s)
* check on its validity
*/
if (base == MAP_FAILED || *base != HMAGIC1 || base[1] != HMAGIC2) {
- if ((int)base != -1)
+ if (base != (unsigned char *)-1)
munmap((caddr_t)base, hsize);
hist_finish();
unlink(hname);