From d88ccf5dca3240d0c688e1ad5ae27305a48c7af9 Mon Sep 17 00:00:00 2001 From: "Tim J. Robbins" Date: Thu, 15 Jul 2004 04:56:41 +0000 Subject: [PATCH] Use err() instead of perror(), exit(). --- usr.bin/xstr/xstr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/xstr/xstr.c b/usr.bin/xstr/xstr.c index 6195ff2b3536..7ea87832251d 100644 --- a/usr.bin/xstr/xstr.c +++ b/usr.bin/xstr/xstr.c @@ -375,7 +375,7 @@ flushsh(void) return; mesgwrit = fopen(strings, old ? "r+" : "w"); if (mesgwrit == NULL) - perror(strings), exit(4); + err(4, "%s", strings); for (i = 0; i < BUCKETS; i++) for (hp = bucket[i].hnext; hp != NULL; hp = hp->hnext) { found(hp->hnew, hp->hpt, hp->hstr);