X-Git-Url: http://andersk.mit.edu/gitweb/gssapi-openssh.git/blobdiff_plain/41b2f31402be54e00944779e69cf43bc23fa413a..HEAD:/openssh/monitor_mm.c diff --git a/openssh/monitor_mm.c b/openssh/monitor_mm.c index b4a6e40..faf9f3d 100644 --- a/openssh/monitor_mm.c +++ b/openssh/monitor_mm.c @@ -1,3 +1,4 @@ +/* $OpenBSD: monitor_mm.c,v 1.16 2009/06/22 05:39:28 dtucker Exp $ */ /* * Copyright 2002 Niels Provos * All rights reserved. @@ -24,15 +25,20 @@ */ #include "includes.h" -RCSID("$OpenBSD: monitor_mm.c,v 1.8 2002/08/02 14:43:15 millert Exp $"); +#include #ifdef HAVE_SYS_MMAN_H #include #endif +#include +#include "openbsd-compat/sys-tree.h" + +#include +#include +#include -#include "openbsd-compat/xmmap.h" -#include "ssh.h" #include "xmalloc.h" +#include "ssh.h" #include "log.h" #include "monitor_mm.h" @@ -93,7 +99,7 @@ mm_create(struct mm_master *mmalloc, size_t size) mm->mmalloc = mmalloc; address = xmmap(size); - if (address == MAP_FAILED) + if (address == (void *)MAP_FAILED) fatal("mmap(%lu): %s", (u_long)size, strerror(errno)); mm->address = address;