summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);