aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorMatt Kraai <kraai@debian.org>2001-05-17 14:19:05 +0000
committerMatt Kraai <kraai@debian.org>2001-05-17 14:19:05 +0000
commit231f998abac93316a5d355b17e281b3d73a57e9d (patch)
tree104f713ac24b9966c74c465b1ff1854d6d50d240 /libbb
parent7cedac567c6ad1367ea3b2f247cec72a09a6ddc6 (diff)
downloadbusybox-w32-231f998abac93316a5d355b17e281b3d73a57e9d.tar.gz
busybox-w32-231f998abac93316a5d355b17e281b3d73a57e9d.tar.bz2
busybox-w32-231f998abac93316a5d355b17e281b3d73a57e9d.zip
Switch from hstrerror to herror for libc5 systems.
Diffstat (limited to 'libbb')
-rw-r--r--libbb/vherror_msg.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libbb/vherror_msg.c b/libbb/vherror_msg.c
index 9a06f3a38..ee0bb5009 100644
--- a/libbb/vherror_msg.c
+++ b/libbb/vherror_msg.c
@@ -35,11 +35,10 @@ extern int h_errno;
35 35
36extern void vherror_msg(const char *s, va_list p) 36extern void vherror_msg(const char *s, va_list p)
37{ 37{
38 int err = h_errno;
39 if(s == 0) 38 if(s == 0)
40 s = ""; 39 s = "";
41 verror_msg(s, p); 40 verror_msg(s, p);
42 if (*s) 41 if (*s)
43 s = ": "; 42 fputs(": ", stderr);
44 fprintf(stderr, "%s%s\n", s, hstrerror(err)); 43 herror("");
45} 44}