diff options
author | Darren Tucker <dtucker@zip.com.au> | 2004-10-06 23:15:44 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2004-10-06 23:15:44 +1000 |
commit | dbc2296e2c4af222f079cb400d75797b566caab6 (patch) | |
tree | efc86d2a90bd591d930034b365a9abd4620469a0 /openbsd-compat/xmmap.c | |
parent | b7d55e3eb564246a853039fd7d2940b79eb0068d (diff) | |
download | openssh-git-dbc2296e2c4af222f079cb400d75797b566caab6.tar.gz |
- (dtucker) [monitor_mm.c openbsd-compat/xmmap.c] Bug #940: cast constants
to void * to appease picky compilers (eg Tru64's "cc -std1").
Diffstat (limited to 'openbsd-compat/xmmap.c')
-rw-r--r-- | openbsd-compat/xmmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsd-compat/xmmap.c b/openbsd-compat/xmmap.c index c8d59dee..74e8a8b1 100644 --- a/openbsd-compat/xmmap.c +++ b/openbsd-compat/xmmap.c @@ -23,7 +23,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -/* $Id: xmmap.c,v 1.5 2004/08/14 13:55:38 dtucker Exp $ */ +/* $Id: xmmap.c,v 1.6 2004/10/06 13:15:44 dtucker Exp $ */ #include "includes.h" @@ -47,7 +47,7 @@ void *xmmap(size_t size) # endif #define MM_SWAP_TEMPLATE "/var/run/sshd.mm.XXXXXXXX" - if (address == MAP_FAILED) { + if (address == (void *)MAP_FAILED) { char tmpname[sizeof(MM_SWAP_TEMPLATE)] = MM_SWAP_TEMPLATE; int tmpfd; mode_t old_umask; |