-/* $NetBSD: hack.mon.c,v 1.11 2011/05/30 03:11:15 joerg Exp $ */
+/* $NetBSD: hack.mon.c,v 1.14 2011/08/07 06:03:45 dholland Exp $ */
/*
* Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: hack.mon.c,v 1.11 2011/05/30 03:11:15 joerg Exp $");
+__RCSID("$NetBSD: hack.mon.c,v 1.14 2011/08/07 06:03:45 dholland Exp $");
#endif /* not lint */
#include <stdlib.h>
#include "extern.h"
#include "hack.mfndpos.h"
-#ifndef NULL
-#define NULL (char *) 0
-#endif
-
static int warnlevel; /* used by movemon and dochugw */
static long lastwarntime;
static int lastwarnlev;
struct monst *mtmp;
while ((mtmp = fdmon) != NULL) {
fdmon = mtmp->nmon;
- free((char *) mtmp);
+ free(mtmp);
}
}
{
int ul = u.ulevel;
int ml = mdat->mlevel;
+ int tmp2;
if (ul < 14) /* points are given based on present and
* future level */