diff options
| author | lukem <lukem@NetBSD.org> | 1997-10-12 14:16:26 +0000 |
|---|---|---|
| committer | lukem <lukem@NetBSD.org> | 1997-10-12 14:16:26 +0000 |
| commit | 5a5bf2abf0d9a42df55b7ff2d902b35e0dd9b7de (patch) | |
| tree | 1d78c3a4f13dc797ebdf17fea1e48bd4068f92bf /robots/score.c | |
| parent | a0bb5b9abf33dc2d2220eb3bd6e79c964e92a1c1 (diff) | |
| download | bsdgames-darwin-5a5bf2abf0d9a42df55b7ff2d902b35e0dd9b7de.tar.gz bsdgames-darwin-5a5bf2abf0d9a42df55b7ff2d902b35e0dd9b7de.zip | |
deprecate bzero, rindex, etc. use symbolic constants in open()
Diffstat (limited to 'robots/score.c')
| -rw-r--r-- | robots/score.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/robots/score.c b/robots/score.c index 400b0f12..c43e4011 100644 --- a/robots/score.c +++ b/robots/score.c @@ -1,4 +1,4 @@ -/* $NetBSD: score.c,v 1.4 1997/10/12 14:10:05 lukem Exp $ */ +/* $NetBSD: score.c,v 1.5 1997/10/12 14:16:28 lukem Exp $ */ /* * Copyright (c) 1980, 1993 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)score.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: score.c,v 1.4 1997/10/12 14:10:05 lukem Exp $"); +__RCSID("$NetBSD: score.c,v 1.5 1997/10/12 14:16:28 lukem Exp $"); #endif #endif /* not lint */ @@ -66,8 +66,8 @@ score() static int numscores, max_uid; Newscore = FALSE; - if ((inf = open(Scorefile, 2)) < 0) { - perror(Scorefile); + if ((inf = open(Scorefile, O_RDWR)) < 0) { + warn("opening `%s'", Scorefile); return; } @@ -167,8 +167,8 @@ show_score() int inf; static int max_score; - if ((inf = open(Scorefile, 0)) < 0) { - perror(Scorefile); + if ((inf = open(Scorefile, O_RDONLY)) < 0) { + warn("opening `%s'", Scorefile); return; } |
