diff options
author | lukem <lukem@NetBSD.org> | 1997-10-11 02:01:02 +0000 |
---|---|---|
committer | lukem <lukem@NetBSD.org> | 1997-10-11 02:01:02 +0000 |
commit | 098ef9272dbfc3deff7afcd768ea90836e72a163 (patch) | |
tree | fa7f578063fca1ce93e1c0c5d89eae28a0b5fe9c /atc/log.c | |
parent | 0f4a9f53cbb30716248d418a66224f0440651ea8 (diff) | |
download | bsdgames-darwin-098ef9272dbfc3deff7afcd768ea90836e72a163.tar.gz bsdgames-darwin-098ef9272dbfc3deff7afcd768ea90836e72a163.tar.zst bsdgames-darwin-098ef9272dbfc3deff7afcd768ea90836e72a163.zip |
use warn instead of perror/fprintf/...
Diffstat (limited to 'atc/log.c')
-rw-r--r-- | atc/log.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1,4 +1,4 @@ -/* $NetBSD: log.c,v 1.5 1997/10/10 02:07:25 lukem Exp $ */ +/* $NetBSD: log.c,v 1.6 1997/10/11 02:01:02 lukem Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -50,7 +50,7 @@ #if 0 static char sccsid[] = "@(#)log.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: log.c,v 1.5 1997/10/10 02:07:25 lukem Exp $"); +__RCSID("$NetBSD: log.c,v 1.6 1997/10/11 02:01:02 lukem Exp $"); #endif #endif not lint @@ -115,7 +115,7 @@ log_score(list_em) umask(0); fd = open(_PATH_SCORE, O_CREAT|O_RDWR, 0644); if (fd < 0) { - perror(_PATH_SCORE); + warn("open %s", _PATH_SCORE); return (-1); } /* @@ -124,7 +124,7 @@ log_score(list_em) */ fp = fdopen(fd, "r+"); if (fp == NULL) { - perror(_PATH_SCORE); + warn("fdopen %s", _PATH_SCORE); return (-1); } #ifdef BSD @@ -134,7 +134,7 @@ log_score(list_em) while (lockf(fileno(fp), F_LOCK, 1) < 0) #endif { - perror("flock"); + warn("flock %s", _PATH_SCORE); return (-1); } for (;;) { |