From 7ba6aba795c5812da0b0df5edcfd7f2add46ad71 Mon Sep 17 00:00:00 2001 From: kraai Date: Thu, 17 May 2001 14:19:05 +0000 Subject: Switch from hstrerror to herror for libc5 systems. git-svn-id: svn://busybox.net/trunk/busybox@2669 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- libbb/vherror_msg.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'libbb') 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; extern void vherror_msg(const char *s, va_list p) { - int err = h_errno; if(s == 0) s = ""; verror_msg(s, p); if (*s) - s = ": "; - fprintf(stderr, "%s%s\n", s, hstrerror(err)); + fputs(": ", stderr); + herror(""); } -- cgit v1.2.3-55-g6feb