diff options
author | tjr <tjr@FreeBSD.org> | 2004-07-15 04:56:41 +0000 |
---|---|---|
committer | tjr <tjr@FreeBSD.org> | 2004-07-15 04:56:41 +0000 |
commit | c26205072e0d8d025bfcb02e7963e751b7e6a477 (patch) | |
tree | 4937ec93d4f8a192a8b662f375ef3bd354864f7f /usr.bin/xstr | |
parent | f0c929d4ea72bcb9501f921008c02b4f26b0c24e (diff) | |
download | FreeBSD-src-c26205072e0d8d025bfcb02e7963e751b7e6a477.zip FreeBSD-src-c26205072e0d8d025bfcb02e7963e751b7e6a477.tar.gz |
Use err() instead of perror(), exit().
Diffstat (limited to 'usr.bin/xstr')
-rw-r--r-- | usr.bin/xstr/xstr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/xstr/xstr.c b/usr.bin/xstr/xstr.c index 6195ff2..7ea8783 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); |