]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix build errors.
authorMichael R Sweet <msweet@msweet.org>
Sun, 23 Apr 2023 21:44:33 +0000 (17:44 -0400)
committerMichael R Sweet <msweet@msweet.org>
Sun, 23 Apr 2023 21:44:33 +0000 (17:44 -0400)
tools/ippeveprinter.c
tools/ippfind.c

index bf98de08dc983b301a1037c4269ee522f55a8049..83373c8955bcc7b475fa5ad81996f1ece047b1a8 100644 (file)
@@ -1681,7 +1681,7 @@ create_printer(
     * Extract up to 3 icons...
     */
 
-    for (i = 1, iconsptr = strchr(printer->icons, ','); iconsptr && i < 3; i ++, iconsptr = strchr(iconsptr, ','))
+    for (i = 1, iconsptr = strchr(printer->icons[0], ','); iconsptr && i < 3; i ++, iconsptr = strchr(iconsptr, ','))
     {
       *iconsptr++ = '\0';
       printer->icons[i] = iconsptr;
index 8cdb2c669289555b6beaaa061f368c32d8e5c223..d3c72f1d0307b8b6013139a89deee2ac1a97291a 100644 (file)
@@ -1376,7 +1376,6 @@ main(int  argc,                           /* I - Number of command-line args */
       */
 
       int      active = 0,             /* Number of active resolves */
-               resolved = 0,           /* Number of resolved services */
                processed = 0;          /* Number of processed services */
 
       for (service = (ippfind_srv_t *)cupsArrayFirst(services);
@@ -1386,9 +1385,6 @@ main(int  argc,                           /* I - Number of command-line args */
         if (service->is_processed)
           processed ++;
 
-        if (service->is_resolved)
-          resolved ++;
-
         if (!service->ref && !service->is_resolved)
         {
          /*