GCC2 lint
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Tue, 23 Mar 1993 21:00:09 +0000 (13:00 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Tue, 23 Mar 1993 21:00:09 +0000 (13:00 -0800)
SCCS-vsn: games/hack/hack.mkshop.c 5.2
SCCS-vsn: games/snake/snake/snake.c 5.11

usr/src/games/hack/hack.mkshop.c
usr/src/games/snake/snake/snake.c

index 9d99a22..a94c24d 100644 (file)
@@ -5,6 +5,7 @@
 #include "hack.h"
 #include "def.mkroom.h"
 #include "def.eshk.h"
 #include "hack.h"
 #include "def.mkroom.h"
 #include "def.eshk.h"
+#include <stdlib.h>
 #define        ESHK    ((struct eshk *)(&(shk->mextra[0])))
 extern struct monst *makemon();
 extern struct obj *mkobj_at();
 #define        ESHK    ((struct eshk *)(&(shk->mextra[0])))
 extern struct monst *makemon();
 extern struct obj *mkobj_at();
@@ -21,7 +22,6 @@ register struct monst *shk;
 #ifdef WIZARD
        /* first determine shoptype */
        if(wizard){
 #ifdef WIZARD
        /* first determine shoptype */
        if(wizard){
-               extern char *getenv();
                register char *ep = getenv("SHOPTYPE");
                if(ep){
                        if(*ep == 'z' || *ep == 'Z'){
                register char *ep = getenv("SHOPTYPE");
                if(ep){
                        if(*ep == 'z' || *ep == 'Z'){
index efdff1a..6a70837 100644 (file)
@@ -12,7 +12,7 @@ char copyright[] =
 #endif /* not lint */
 
 #ifndef lint
 #endif /* not lint */
 
 #ifndef lint
-static char sccsid[] = "@(#)snake.c    5.10 (Berkeley) %G%";
+static char sccsid[] = "@(#)snake.c    5.11 (Berkeley) %G%";
 #endif /* not lint */
 
 /*
 #endif /* not lint */
 
 /*
@@ -27,9 +27,12 @@ static char sccsid[] = "@(#)snake.c  5.10 (Berkeley) %G%";
  */
 
 #include <sys/param.h>
  */
 
 #include <sys/param.h>
+
+#include <errno.h>
 #include <fcntl.h>
 #include <pwd.h>
 #include <fcntl.h>
 #include <pwd.h>
-#include <errno.h>
+#include <time.h>
+
 #include "snake.h"
 #include "pathnames.h"
 
 #include "snake.h"
 #include "pathnames.h"
 
@@ -71,7 +74,6 @@ char **argv;
        extern char *optarg;
        extern int optind;
        int ch, i, j, k;
        extern char *optarg;
        extern int optind;
        int ch, i, j, k;
-       time_t time();
        long atol();
        void stop();
 
        long atol();
        void stop();