summaryrefslogtreecommitdiffstats
path: root/robots/main.c
diff options
context:
space:
mode:
authorlukem <lukem@NetBSD.org>1997-10-12 14:16:26 +0000
committerlukem <lukem@NetBSD.org>1997-10-12 14:16:26 +0000
commit5a5bf2abf0d9a42df55b7ff2d902b35e0dd9b7de (patch)
tree1d78c3a4f13dc797ebdf17fea1e48bd4068f92bf /robots/main.c
parenta0bb5b9abf33dc2d2220eb3bd6e79c964e92a1c1 (diff)
downloadbsdgames-darwin-5a5bf2abf0d9a42df55b7ff2d902b35e0dd9b7de.tar.gz
bsdgames-darwin-5a5bf2abf0d9a42df55b7ff2d902b35e0dd9b7de.zip
deprecate bzero, rindex, etc. use symbolic constants in open()
Diffstat (limited to 'robots/main.c')
-rw-r--r--robots/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/robots/main.c b/robots/main.c
index ce0831b4..27263b9d 100644
--- a/robots/main.c
+++ b/robots/main.c
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.6 1997/10/12 14:09:58 lukem Exp $ */
+/* $NetBSD: main.c,v 1.7 1997/10/12 14:16:26 lukem Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -43,7 +43,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1993\n\
#if 0
static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: main.c,v 1.6 1997/10/12 14:09:58 lukem Exp $");
+__RCSID("$NetBSD: main.c,v 1.7 1997/10/12 14:16:26 lukem Exp $");
#endif
#endif /* not lint */
@@ -74,7 +74,7 @@ main(ac, av)
setgid(getgid());
Scorefile = av[0];
# ifdef FANCY
- sp = rindex(Scorefile, '/');
+ sp = strrchr(Scorefile, '/');
if (sp == NULL)
sp = Scorefile;
if (strcmp(sp, "pattern_roll") == 0)