]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
More cosmetic calloc() changes.
authormike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Sat, 14 Jun 2003 16:17:26 +0000 (16:17 +0000)
committermike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Sat, 14 Jun 2003 16:17:26 +0000 (16:17 +0000)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@3773 7a7537e8-13f0-0310-91df-b6672ffda945

cups/ppd.c

index e30e9e3e160981c23cb66bade800a723c29bd9ac..68a43dc44744fb0976df23cc6f0554e81aeedd33 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * "$Id: ppd.c,v 1.105 2003/06/14 16:15:05 mike Exp $"
+ * "$Id: ppd.c,v 1.106 2003/06/14 16:17:26 mike Exp $"
  *
  *   PPD file routines for the Common UNIX Printing System (CUPS).
  *
@@ -1084,7 +1084,7 @@ ppdOpen(FILE *fp)                 /* I - File to read from */
        }
 
       ppd->num_emulations = count;
-      ppd->emulations     = calloc(sizeof(ppd_emul_t), count);
+      ppd->emulations     = calloc(count, sizeof(ppd_emul_t));
 
       for (i = 0, sptr = string; i < count; i ++)
       {
@@ -1661,7 +1661,7 @@ ppdOpen(FILE *fp)                 /* I - File to read from */
              strcmp(keyword, "NonUIConstraints") == 0)
     {
       if (ppd->num_consts == 0)
-       constraint = calloc(sizeof(ppd_const_t), 1);
+       constraint = calloc(1, sizeof(ppd_const_t));
       else
        constraint = realloc(ppd->consts,
                             (ppd->num_consts + 1) * sizeof(ppd_const_t));
@@ -2911,5 +2911,5 @@ ppd_read(FILE *fp,                        /* I - File to read from */
 
 
 /*
- * End of "$Id: ppd.c,v 1.105 2003/06/14 16:15:05 mike Exp $".
+ * End of "$Id: ppd.c,v 1.106 2003/06/14 16:17:26 mike Exp $".
  */