diff options
author | 2002-10-23 14:23:15 +0000 | |
---|---|---|
committer | 2002-10-23 14:23:15 +0000 | |
commit | 1a5dca131baf1f0648646582a805c5b21b63e53b (patch) | |
tree | abb2ff2a922866877326c733313eb2cd85cf33e1 | |
parent | mips archdep stuff update while waiting for ok on mi (diff) | |
download | wireguard-openbsd-1a5dca131baf1f0648646582a805c5b21b63e53b.tar.xz wireguard-openbsd-1a5dca131baf1f0648646582a805c5b21b63e53b.zip |
Move a cast from LHS to RHS to quiet a "cast from pointer to integer
of different size" warning on 64-bit platforms.
-rw-r--r-- | bin/ksh/history.c | 4 |
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); |