Switch from hstrerror to herror for libc5 systems.

This commit is contained in:
Matt Kraai 2001-05-17 14:19:05 +00:00
parent 7cedac567c
commit 231f998aba

View File

@ -35,11 +35,10 @@ extern int h_errno;
extern void vherror_msg(const char *s, va_list p) extern void vherror_msg(const char *s, va_list p)
{ {
int err = h_errno;
if(s == 0) if(s == 0)
s = ""; s = "";
verror_msg(s, p); verror_msg(s, p);
if (*s) if (*s)
s = ": "; fputs(": ", stderr);
fprintf(stderr, "%s%s\n", s, hstrerror(err)); herror("");
} }