Use err() instead of perror(), exit().
This commit is contained in:
parent
db8714af52
commit
d88ccf5dca
@ -375,7 +375,7 @@ flushsh(void)
|
|||||||
return;
|
return;
|
||||||
mesgwrit = fopen(strings, old ? "r+" : "w");
|
mesgwrit = fopen(strings, old ? "r+" : "w");
|
||||||
if (mesgwrit == NULL)
|
if (mesgwrit == NULL)
|
||||||
perror(strings), exit(4);
|
err(4, "%s", strings);
|
||||||
for (i = 0; i < BUCKETS; i++)
|
for (i = 0; i < BUCKETS; i++)
|
||||||
for (hp = bucket[i].hnext; hp != NULL; hp = hp->hnext) {
|
for (hp = bucket[i].hnext; hp != NULL; hp = hp->hnext) {
|
||||||
found(hp->hnew, hp->hpt, hp->hstr);
|
found(hp->hnew, hp->hpt, hp->hstr);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user