-/* $NetBSD: hack.read.c,v 1.9 2009/06/07 18:30:39 dholland Exp $ */
+/* $NetBSD: hack.read.c,v 1.11 2011/08/06 20:29:37 dholland Exp $ */
/*
* Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: hack.read.c,v 1.9 2009/06/07 18:30:39 dholland Exp $");
+__RCSID("$NetBSD: hack.read.c,v 1.11 2011/08/06 20:29:37 dholland Exp $");
#endif /* not lint */
#include <stdlib.h>
#include "hack.h"
#include "extern.h"
+static int identify(struct obj *);
+static int monstersym(int);
+
int
doread(void)
{
Punished = 0;
freeobj(uchain);
unpobj(uchain);
- free((char *) uchain);
+ free(uchain);
uball->spe = 0;
uball->owornmask &= ~W_BALL;
uchain = uball = (struct obj *) 0;
return (1);
}
-int
+static int
identify(struct obj *otmp) /* also called by newmail() */
{
objects[otmp->otyp].oc_name_known = 1;
}
/* Test whether we may genocide all monsters with symbol ch */
-int
+static int
monstersym(int ch) /* arnold@ucsfcgl */
{
const struct permonst *mp;