* Makefile.in (mingw-hdep.o, posix-hdep.o): New dependencies.
[deliverable/binutils-gdb.git] / gdb / utils.c
index dff5cb8d619675630d1b06556dce69d7be385cba..c1ed5b73e2038ab1a6ce5e7c403f522fd7d6e1d6 100644 (file)
@@ -839,25 +839,6 @@ internal_warning (const char *file, int line, const char *string, ...)
   va_end (ap);
 }
 
-/* The strerror() function can return NULL for errno values that are
-   out of range.  Provide a "safe" version that always returns a
-   printable string. */
-
-char *
-safe_strerror (int errnum)
-{
-  char *msg;
-
-  msg = strerror (errnum);
-  if (msg == NULL)
-    {
-      static char buf[32];
-      xsnprintf (buf, sizeof buf, "(undocumented errno %d)", errnum);
-      msg = buf;
-    }
-  return (msg);
-}
-
 /* Print the system error message for errno, and also mention STRING
    as the file name for which the error was encountered.
    Then return to command level.  */
This page took 0.033521 seconds and 4 git commands to generate.