From: hno <> Date: Mon, 12 Aug 2002 07:21:06 +0000 (+0000) Subject: Bogzilla #401: X-Git-Tag: SQUID_3_0_PRE1~847 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c4b66f5c2625f3d0b6fb4dba97709d7b0190638e;p=thirdparty%2Fsquid.git Bogzilla #401: Killed the remaining (unused) references to sys_nerr to increase portability (MaxOS 10.2) --- diff --git a/lib/util.c b/lib/util.c index 3e79dec572..8137441c51 100644 --- a/lib/util.c +++ b/lib/util.c @@ -1,6 +1,6 @@ /* - * $Id: util.c,v 1.85 2002/04/06 13:57:11 hno Exp $ + * $Id: util.c,v 1.86 2002/08/12 01:21:06 hno Exp $ * * DEBUG: * AUTHOR: Harvest Derived @@ -75,13 +75,6 @@ static void default_failure_notify(const char *); void (*failure_notify) (const char *) = default_failure_notify; static char msg[128]; -#if !defined(__CYGWIN__) -extern int sys_nerr; -#else -#define sys_nerr _sys_nerr -#endif - - #if MEM_GEN_TRACE static FILE *tracefp = NULL; @@ -641,21 +634,6 @@ xstrerror(void) return xstrerror_buf; } -#if NOT_NEEDED -/* - * xbstrerror with argument for late notification */ - -const char * -xbstrerror(int err) -{ - static char xbstrerror_buf[BUFSIZ]; - if (err < 0 || err >= sys_nerr) - return ("Unknown"); - snprintf(xbstrerror_buf, BUFSIZ, "(%d) %s", err, strerror(err)); - return xbstrerror_buf; -} -#endif - void Tolower(char *q) {