Use err() instead of perror(), exit().

This commit is contained in:
Tim J. Robbins 2004-07-15 04:56:41 +00:00
parent db8714af52
commit d88ccf5dca
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=132182

View File

@ -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);