]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - backend/ipp.c
Mirror 1.1.x changes.
[thirdparty/cups.git] / backend / ipp.c
index 1174fe578c257e4748cab9a5d2798cb9d1510e22..419eb116c662842c6008dc5e4bd2a694962d1981 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * "$Id: ipp.c,v 1.38.2.28 2003/07/30 17:04:38 mike Exp $"
+ * "$Id: ipp.c,v 1.38.2.29 2003/10/09 19:13:47 mike Exp $"
  *
  *   IPP backend for the Common UNIX Printing System (CUPS).
  *
@@ -43,6 +43,7 @@
 #include <errno.h>
 #include <sys/types.h>
 #include <sys/stat.h>
+#include <cups/http-private.h>
 #include <cups/cups.h>
 #include <cups/language.h>
 #include <cups/string.h>
@@ -60,39 +61,6 @@ static char  pstmpname[1024] = "";   /* Temporary PostScript file name */
 #endif /* __APPLE__ */
 
 
-/*
- * Some OS's don't have hstrerror(), most notably Solaris...
- */
-
-#ifndef HAVE_HSTRERROR
-#  define hstrerror cups_hstrerror
-
-const char *                                   /* O - Error string */
-cups_hstrerror(int error)                      /* I - Error number */
-{
-  static const char * const errors[] =
-               {
-                 "OK",
-                 "Host not found.",
-                 "Try again.",
-                 "Unrecoverable lookup error.",
-                 "No data associated with name."
-               };
-
-
-  if (error < 0 || error > 4)
-    return ("Unknown hostname lookup error.");
-  else
-    return (errors[error]);
-}
-#elif defined(_AIX)
-/*
- * AIX doesn't provide a prototype but does provide the function...
- */
-extern const char *hstrerror(int);
-#endif /* !HAVE_HSTRERROR */
-
-
 /*
  * Local functions...
  */
@@ -1239,5 +1207,5 @@ sigterm_handler(int sig)          /* I - Signal */
 
 
 /*
- * End of "$Id: ipp.c,v 1.38.2.28 2003/07/30 17:04:38 mike Exp $".
+ * End of "$Id: ipp.c,v 1.38.2.29 2003/10/09 19:13:47 mike Exp $".
  */