perror should use strerror
This commit is contained in:
parent
79bada381a
commit
ba10025308
@ -2,5 +2,5 @@
|
||||
#include <errno.h>
|
||||
|
||||
void perror(const char *s) {
|
||||
fprintf(stderr, "%s: error %d\n", s, errno);
|
||||
fprintf(stderr, "%s: %s\n", s, strerror(errno));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user