declare index/rindex returns for ANSI C
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Sun, 27 Dec 1987 05:09:27 +0000 (21:09 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Sun, 27 Dec 1987 05:09:27 +0000 (21:09 -0800)
SCCS-vsn: games/atc/log.c 5.4

usr/src/games/atc/log.c

index 0b7ebdd..b18ef57 100644 (file)
@@ -8,7 +8,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)log.c      5.3 (Berkeley) %G%";
+static char sccsid[] = "@(#)log.c      5.4 (Berkeley) %G%";
 #endif not lint
 
 #include "include.h"
 #endif not lint
 
 #include "include.h"
@@ -56,7 +56,7 @@ log_score(list_em)
        register int    i, fd, num_scores = 0, good, changed = 0, found = 0;
        struct passwd   *pw;
        FILE            *fp;
        register int    i, fd, num_scores = 0, good, changed = 0, found = 0;
        struct passwd   *pw;
        FILE            *fp;
-       char            *cp, logstr[BUFSIZ];
+       char            *cp, logstr[BUFSIZ], *index(), *rindex();
        SCORE           score[100], thisscore;
 #ifdef SYSV
        struct utsname  name;
        SCORE           score[100], thisscore;
 #ifdef SYSV
        struct utsname  name;