]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix clang-reported errors.
authormike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Wed, 17 Sep 2008 00:56:20 +0000 (00:56 +0000)
committermike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Wed, 17 Sep 2008 00:56:20 +0000 (00:56 +0000)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@7952 7a7537e8-13f0-0310-91df-b6672ffda945

cups/http-support.c
scheduler/conf.c
scheduler/cupsfilter.c

index 4bacadab06c600d661970acc9ca2092d640f8feb..7af258600bf26daf696fbdc29370188b51a70aa1 100644 (file)
@@ -1298,7 +1298,9 @@ _httpResolveURI(
                        hostname[1024],
                        resource[1024];
   int                  port;
+#ifdef DEBUG
   http_uri_status_t    status;         /* URI decode status */
+#endif /* DEBUG */
 
 
   DEBUG_printf(("_httpResolveURI(uri=\"%s\", resolved_uri=%p, "
@@ -1309,10 +1311,17 @@ _httpResolveURI(
   * Get the device URI...
   */
 
+#ifdef DEBUG
   if ((status = httpSeparateURI(HTTP_URI_CODING_ALL, uri, scheme,
                                 sizeof(scheme), userpass, sizeof(userpass),
                                hostname, sizeof(hostname), &port, resource,
                                sizeof(resource))) < HTTP_URI_OK)
+#else
+  if (httpSeparateURI(HTTP_URI_CODING_ALL, uri, scheme,
+                     sizeof(scheme), userpass, sizeof(userpass),
+                     hostname, sizeof(hostname), &port, resource,
+                     sizeof(resource)) < HTTP_URI_OK)
+#endif /* DEBUG */
   {
     if (log)
       _cupsLangPrintf(stderr, _("Bad device URI \"%s\"!\n"), uri);
index ac1d909aeccb7afcf5e526da85024725b1dbc05a..a820b3c4629c4e6e04e1559165ec7c1f926dbb5a 100644 (file)
@@ -3372,6 +3372,8 @@ read_location(cups_file_t *fp,            /* I - Configuration file */
         cupsdLogMessage(CUPSD_LOG_ERROR, "Syntax error on line %d.", linenum);
         if (FatalErrors & CUPSD_FATAL_CONFIG)
          return (0);
+        else
+         continue;
       }
       
       if ((loc = cupsdCopyLocation(&parent)) == NULL)
@@ -3512,6 +3514,8 @@ read_policy(cups_file_t *fp,              /* I - Configuration file */
         cupsdLogMessage(CUPSD_LOG_ERROR, "Syntax error on line %d.", linenum);
         if (FatalErrors & CUPSD_FATAL_CONFIG)
          return (0);
+        else
+         continue;
       }
       
      /*
index 791e9292d37c1e5dd0a968bfced925a7d5d09986..518dd553d7d6d1601bbd17c654b569efd6ad1e50 100644 (file)
@@ -380,7 +380,8 @@ main(int  argc,                             /* I - Number of command-line args */
     return (1);
   }
 
-  add_printer_filters(command, mime, printer, ppdfile, &prefilter_type);
+  printer_type = add_printer_filters(command, mime, printer, ppdfile,
+                                     &prefilter_type);
 
  /*
   * Get the source and destination types...