]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bogzilla #401:
authorhno <>
Mon, 12 Aug 2002 07:21:06 +0000 (07:21 +0000)
committerhno <>
Mon, 12 Aug 2002 07:21:06 +0000 (07:21 +0000)
Killed the remaining (unused) references to sys_nerr to increase portability
(MaxOS 10.2)

lib/util.c

index 3e79dec5729623eab7cf38fe885fa51f27409cff..8137441c5174c2dd0047ea452072b428097ff24c 100644 (file)
@@ -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)
 {