diff options
Diffstat (limited to 'games/robots/score.c')
-rw-r--r-- | games/robots/score.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/games/robots/score.c b/games/robots/score.c index 029c725ba18..c5d81177509 100644 --- a/games/robots/score.c +++ b/games/robots/score.c @@ -1,4 +1,4 @@ -/* $OpenBSD: score.c,v 1.15 2017/05/28 20:34:33 tedu Exp $ */ +/* $OpenBSD: score.c,v 1.16 2019/06/28 13:32:52 deraadt Exp $ */ /* $NetBSD: score.c,v 1.3 1995/04/22 10:09:12 cgd Exp $ */ /* @@ -168,7 +168,7 @@ show_score(void) int inf; static int max_score; - if ((inf = open(Scorefile, O_RDONLY)) < 0) { + if ((inf = open(Scorefile, O_RDONLY)) == -1) { perror(Scorefile); return; } |