]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Mirror 1.1.x change.
authormike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Wed, 9 Jan 2002 20:58:31 +0000 (20:58 +0000)
committermike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Wed, 9 Jan 2002 20:58:31 +0000 (20:58 +0000)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/branches/branch-1.2@2025 7a7537e8-13f0-0310-91df-b6672ffda945

cups/testppd.c

index 2a32b555d17bfedea413812717f17230cbb9c6a5..078a6cfd4d23f4bf66463d927031a19fa10bf253 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * "$Id: testppd.c,v 1.18.2.2 2002/01/02 18:04:30 mike Exp $"
+ * "$Id: testppd.c,v 1.18.2.3 2002/01/09 20:58:31 mike Exp $"
  *
  *   PPD test program for the Common UNIX Printing System (CUPS).
  *
@@ -45,7 +45,6 @@ main(int  argc,                       /* I - Number of command-line arguments */
      char *argv[])             /* I - Command-line arguments */
 {
   int          i, j, k, m;     /* Looping vars */
-  const char   *filename;      /* File to load */
   ppd_file_t   *ppd;           /* PPD file record */
   ppd_size_t   *size;          /* Size record */
   ppd_group_t  *group;         /* UI group */
@@ -81,7 +80,7 @@ main(int  argc,                       /* I - Number of command-line arguments */
       continue;
     }
 
-    printf("FILE: %s\n", filename);
+    printf("FILE: %s\n", argv[i]);
     printf("    language_level = %d\n", ppd->language_level);
     printf("    color_device = %s\n", ppd->color_device ? "TRUE" : "FALSE");
     printf("    variable_sizes = %s\n", ppd->variable_sizes ? "TRUE" : "FALSE");
@@ -120,7 +119,7 @@ main(int  argc,                     /* I - Number of command-line arguments */
     printf("    nickname = %s\n", ppd->nickname);
     printf("    shortnickname = %s\n", ppd->shortnickname);
     printf("    patches = %d bytes\n",
-           ppd->patches == NULL ? 0 : strlen(ppd->patches));
+           ppd->patches == NULL ? 0 : (int)strlen(ppd->patches));
 
     printf("    num_groups = %d\n", ppd->num_groups);
     for (j = 0, group = ppd->groups; j < ppd->num_groups; j ++, group ++)
@@ -197,5 +196,5 @@ main(int  argc,                     /* I - Number of command-line arguments */
 
 
 /*
- * End of "$Id: testppd.c,v 1.18.2.2 2002/01/02 18:04:30 mike Exp $".
+ * End of "$Id: testppd.c,v 1.18.2.3 2002/01/09 20:58:31 mike Exp $".
  */