summaryrefslogtreecommitdiff
path: root/openbsd-compat
diff options
context:
space:
mode:
Diffstat (limited to 'openbsd-compat')
-rw-r--r--openbsd-compat/xmmap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsd-compat/xmmap.c b/openbsd-compat/xmmap.c
index c8d59dee0..74e8a8b13 100644
--- a/openbsd-compat/xmmap.c
+++ b/openbsd-compat/xmmap.c
@@ -23,7 +23,7 @@
23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */ 24 */
25 25
26/* $Id: xmmap.c,v 1.5 2004/08/14 13:55:38 dtucker Exp $ */ 26/* $Id: xmmap.c,v 1.6 2004/10/06 13:15:44 dtucker Exp $ */
27 27
28#include "includes.h" 28#include "includes.h"
29 29
@@ -47,7 +47,7 @@ void *xmmap(size_t size)
47# endif 47# endif
48 48
49#define MM_SWAP_TEMPLATE "/var/run/sshd.mm.XXXXXXXX" 49#define MM_SWAP_TEMPLATE "/var/run/sshd.mm.XXXXXXXX"
50 if (address == MAP_FAILED) { 50 if (address == (void *)MAP_FAILED) {
51 char tmpname[sizeof(MM_SWAP_TEMPLATE)] = MM_SWAP_TEMPLATE; 51 char tmpname[sizeof(MM_SWAP_TEMPLATE)] = MM_SWAP_TEMPLATE;
52 int tmpfd; 52 int tmpfd;
53 mode_t old_umask; 53 mode_t old_umask;