-/* $NetBSD: hack.read.c,v 1.8 2003/04/02 18:36:39 jsm Exp $ */
+/* $NetBSD: hack.read.c,v 1.10 2009/08/12 07:28:41 dholland Exp $ */
/*
* Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: hack.read.c,v 1.8 2003/04/02 18:36:39 jsm Exp $");
+__RCSID("$NetBSD: hack.read.c,v 1.10 2009/08/12 07:28:41 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()
+doread(void)
{
struct obj *scroll;
boolean confused = (Confusion != 0);
return (1);
}
-int
-identify(otmp) /* also called by newmail() */
- struct obj *otmp;
+static int
+identify(struct obj *otmp) /* also called by newmail() */
{
objects[otmp->otyp].oc_name_known = 1;
otmp->known = otmp->dknown = 1;
}
void
-litroom(on)
- boolean on;
+litroom(boolean on)
{
#ifndef QUEST
int num, zx, zy;
}
/* Test whether we may genocide all monsters with symbol ch */
-int
-monstersym(ch) /* arnold@ucsfcgl */
- char ch;
+static int
+monstersym(int ch) /* arnold@ucsfcgl */
{
const struct permonst *mp;