]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix compile warnings and allow PPD not to be found...
authormike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Thu, 23 Jan 2003 20:16:08 +0000 (20:16 +0000)
committermike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Thu, 23 Jan 2003 20:16:08 +0000 (20:16 +0000)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@3128 7a7537e8-13f0-0310-91df-b6672ffda945

backend/ipp.c

index 0a6f00019e4a96f52cd5a58edbdc19f7e5db395c..a93d4e15231d2005a00c0bb1fb2f968799bc5b73 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * "$Id: ipp.c,v 1.68 2003/01/23 19:25:07 mike Exp $"
+ * "$Id: ipp.c,v 1.69 2003/01/23 20:16:08 mike Exp $"
  *
  *   IPP backend for the Common UNIX Printing System (CUPS).
  *
@@ -44,6 +44,7 @@
 #include <cups/language.h>
 #include <cups/string.h>
 #include <signal.h>
+#include <sys/wait.h>
 
 
 /*
@@ -975,11 +976,13 @@ run_pictwps_filter(char **argv,                   /* I - Command-line arguments */
   {
     fprintf(stderr, "ERROR: Unable to get PPD file for printer \"%s\" - %s.\n",
             printer, ippErrorString(cupsLastError()));
-    return (-1);
+    /*return (-1);*/
+  }
+  else
+  {
+    snprintf(ppdenv, sizeof(ppdenv), "PPD=%s", ppdfile);
+    putenv(ppdenv);
   }
-
-  snprintf(ppdenv, sizeof(ppdenv), "PPD=%s", ppdfile);
-  putenv(ppdenv);
 
  /*
   * Then create a temporary file for printing...
@@ -988,7 +991,7 @@ run_pictwps_filter(char **argv,                     /* I - Command-line arguments */
   if ((fd = cupsTempFd(filename, length)) < 0)
   {
     fprintf(stderr, "ERROR: Unable to create temporary file - %s.\n",
-            printer, strerror(errno));
+            strerror(errno));
     return (-1);
   }
 
@@ -1078,5 +1081,5 @@ run_pictwps_filter(char **argv,                   /* I - Command-line arguments */
 
 
 /*
- * End of "$Id: ipp.c,v 1.68 2003/01/23 19:25:07 mike Exp $".
+ * End of "$Id: ipp.c,v 1.69 2003/01/23 20:16:08 mike Exp $".
  */