$NetBSD: patch-aq,v 1.1.1.1 2001/04/27 15:27:31 agc Exp $

--- moreobj.c.orig	Sat Jan 13 20:22:49 2001
+++ moreobj.c	Sat Jan 13 20:27:37 2001
@@ -7,6 +7,8 @@
  *	ochest()
  *	ofountain()
  */
+#include <stdlib.h>
+#include <unistd.h>
 #include "header.h"
 #include "player.h"
 #include "itm.h"
@@ -19,7 +21,7 @@
  *	******
  *
  */
-oaltar()
+void oaltar(void)
 {
 	long k;
 
@@ -71,7 +73,7 @@
 					return;
 				}
 				c[GOLD] -= k;
-				if (k < c[GOLD]/10 || k<rnd(50) && !wizard) { 
+				if ((k < c[GOLD]/10 || k<rnd(50)) && !wizard) { 
 					createmonster(makemonst(level+2)); 
 					c[AGGRAVATE] += 500; 
 				}
@@ -129,7 +131,7 @@
 /*
 	function to cast a +3 protection on the player
  */
-ohear()
+void ohear(void)
 {
 	lprcat("You have been heard!");
 	if (c[ALTPRO]==0) 
@@ -144,7 +146,7 @@
  *	*******
  *
  */
-othrone(arg)
+void othrone(arg)
 int arg;
 {
 	int i,k;
@@ -194,7 +196,7 @@
 	} /* NOTREACHED */
 }
 
-odeadthrone()
+void odeadthrone(void)
 {
 	int k;
 
@@ -228,7 +230,7 @@
  *	******
  *
  */
-ochest()
+void ochest(void)
 {
 	int i,k;
 
@@ -294,7 +296,7 @@
  *	OFOUNTAIN
  *	*********
  */
-ofountain()
+void ofountain(void)
 {
 	int x;
 
@@ -371,7 +373,7 @@
 	a subroutine to raise or lower character levels
 	if how > 0 they are raised   if how < 0 they are lowered
  */
-fntchange(how)
+void fntchange(how)
 int how;
 {
 	long j;
@@ -464,7 +466,7 @@
  *
  *	process an up/down of a character attribute for ofountain
  */
-fch(how,x)
+void fch(how,x)
 int how;
 long *x;
 {
