summaryrefslogtreecommitdiff
path: root/cups/testraster.c
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2018-10-17 16:54:15 -0400
committerMichael R Sweet <michael.r.sweet@gmail.com>2018-10-17 16:54:15 -0400
commit0b353e63ec5c3caa91ed4c5859a35807e8654452 (patch)
treeb3b88c2176dcad00248e2d2236f012da819637bc /cups/testraster.c
parent2064e071b09946c58b8c5ec4dd66a8813a10b4c8 (diff)
downloadcups-0b353e63ec5c3caa91ed4c5859a35807e8654452.tar.gz
Cleanup.
Diffstat (limited to 'cups/testraster.c')
-rw-r--r--cups/testraster.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/cups/testraster.c b/cups/testraster.c
index a1d24cd2a..d3dab4bbc 100644
--- a/cups/testraster.c
+++ b/cups/testraster.c
@@ -34,13 +34,12 @@ int /* O - Exit status */
main(int argc, /* I - Number of command-line args */
char *argv[]) /* I - Command-line arguments */
{
- int errors; /* Number of errors */
- const char *ext; /* Filename extension */
+ int errors = 0; /* Number of errors */
if (argc == 1)
{
- errors = do_raster_tests(CUPS_RASTER_WRITE);
+ errors += do_raster_tests(CUPS_RASTER_WRITE);
errors += do_raster_tests(CUPS_RASTER_WRITE_COMPRESSED);
errors += do_raster_tests(CUPS_RASTER_WRITE_PWG);
errors += do_raster_tests(CUPS_RASTER_WRITE_APPLE);
@@ -49,7 +48,7 @@ main(int argc, /* I - Number of command-line args */
{
int i; /* Looping var */
- for (errors = 0, i = 1; i < argc; i ++)
+ for (i = 1; i < argc; i ++)
errors += do_ras_file(argv[i]);
}