lint
authorEdward Wang <edward@ucbvax.Berkeley.EDU>
Sat, 15 Oct 1983 15:08:35 +0000 (07:08 -0800)
committerEdward Wang <edward@ucbvax.Berkeley.EDU>
Sat, 15 Oct 1983 15:08:35 +0000 (07:08 -0800)
SCCS-vsn: games/sail/dr_2.c 1.5
SCCS-vsn: games/sail/pl_1.c 1.13
SCCS-vsn: games/sail/pl_2.c 1.7
SCCS-vsn: games/sail/misc.c 1.4
SCCS-vsn: games/sail/sync.c 1.4

usr/src/games/sail/dr_2.c
usr/src/games/sail/misc.c
usr/src/games/sail/pl_1.c
usr/src/games/sail/pl_2.c
usr/src/games/sail/sync.c

index df5b8de..80e6c44 100644 (file)
@@ -1,5 +1,5 @@
 #ifndef lint
 #ifndef lint
-static char *sccsid = "@(#)dr_2.c      1.4 83/10/10";
+static char *sccsid = "@(#)dr_2.c      1.5 83/10/14";
 #endif
 
 #include "driver.h"
 #endif
 
 #include "driver.h"
@@ -165,7 +165,7 @@ struct ship *ship;
 char *movement;
 {
        register struct File *fp = ship->file;
 char *movement;
 {
        register struct File *fp = ship->file;
-       int drift = fp->drift;
+       char drift = fp->drift;
        int row = fp->row;
        int col = fp->col;
        int dir = fp->dir;
        int row = fp->row;
        int col = fp->col;
        int dir = fp->dir;
@@ -274,3 +274,14 @@ char command[], temp[];
                rmend(temp);
        }
 }
                rmend(temp);
        }
 }
+
+rmend(str)
+char *str;
+{
+       register char *p;
+
+       for (p = str; *p; p++)
+               ;
+       if (p != str)
+               *--p = 0;
+}
index cfeaed6..99d7b53 100644 (file)
@@ -1,5 +1,5 @@
 #ifndef lint
 #ifndef lint
-static char *sccsid = "@(#)misc.c      1.3 83/10/10";
+static char *sccsid = "@(#)misc.c      1.4 83/10/14";
 #endif
 #include "externs.h"
 
 #endif
 #include "externs.h"
 
@@ -130,17 +130,6 @@ int quick;                 /* returns true if fromship is */
        return ang < 5;
 }
 
        return ang < 5;
 }
 
-rmend(str)
-char *str;
-{
-       register char *p;
-
-       for (p = str; *p; p++)
-               ;
-       if (p != str)
-               *--p = 0;
-}
-
 colours(sp)
 register struct ship *sp;
 {
 colours(sp)
 register struct ship *sp;
 {
index 728f543..563d464 100644 (file)
@@ -1,5 +1,5 @@
 #ifndef lint
 #ifndef lint
-static char *sccsid = "@(#)pl_1.c      1.12 83/10/14";
+static char *sccsid = "@(#)pl_1.c      1.13 83/10/14";
 #endif
 
 #include "player.h"
 #endif
 
 #include "player.h"
@@ -8,8 +8,6 @@ static  char *sccsid = "@(#)pl_1.c      1.12 83/10/14";
 
 int choke(), child();
 
 
 int choke(), child();
 
-char isplayer = 1;
-
 /*ARGSUSED*/
 main(argc, argv)
 int argc;
 /*ARGSUSED*/
 main(argc, argv)
 int argc;
@@ -24,6 +22,7 @@ char **argv;
        extern char _sobuf[];
 
        setbuf(stdout, _sobuf);
        extern char _sobuf[];
 
        setbuf(stdout, _sobuf);
+       isplayer = 1;
 
        while (*++argv && **argv == '-')
                switch (*++*argv) {
 
        while (*++argv && **argv == '-')
                switch (*++*argv) {
index 42b5e8d..4f56a23 100644 (file)
@@ -1,5 +1,5 @@
 #ifndef lint
 #ifndef lint
-static char *sccsid = "@(#)pl_2.c      1.6 83/10/14";
+static char *sccsid = "@(#)pl_2.c      1.7 83/10/14";
 #endif
 
 #include "player.h"
 #endif
 
 #include "player.h"
@@ -31,7 +31,7 @@ int ma, ta, af;
                Signal("Already moved.", (struct ship *)0);
                return;
        }
                Signal("Already moved.", (struct ship *)0);
                return;
        }
-       sprintf(prompt, "move (%d,%c%d): ", ma, af ? '\'' : ' ', ta);
+       (void) sprintf(prompt, "move (%d,%c%d): ", ma, af ? '\'' : ' ', ta);
        sgetstr(prompt, buf, sizeof buf);
        dir = mf->dir;
        vma = ma;
        sgetstr(prompt, buf, sizeof buf);
        dir = mf->dir;
        vma = ma;
index 908df9e..fbafca2 100644 (file)
@@ -1,5 +1,5 @@
 #ifndef lint
 #ifndef lint
-static char *sccsid = "@(#)sync.c      1.3 83/10/14";
+static char *sccsid = "@(#)sync.c      1.4 83/10/14";
 #endif
 
 #include "externs.h"
 #endif
 
 #include "externs.h"
@@ -56,6 +56,7 @@ sync_open()
        if (sync_fp == 0)
                return -1;
        sync_seek == 0;
        if (sync_fp == 0)
                return -1;
        sync_seek == 0;
+       return 0;
 }
 
 sync_close(remove)
 }
 
 sync_close(remove)