-CHANGES - 2.2.11 - 2019-02-21
+CHANGES - 2.2.11 - 2019-02-25
=============================
- Added a USB quirks rule for Xerox printers (Issue #5523)
- The scheduler's self-signed certificate did not include all of the alternate
names for the server when using GNU TLS (Issue #5525)
+- Fixed a compiler warning with newer versions of GCC (Issue #5533)
- Media size matching now uses a tolerance of 0.5mm (rdar://33822024)
- The lpadmin command would hang with a bad PPD file (rdar://41495016)
- Fixed a potential crash bug in cups-driverd (rdar://46625579)
//
// Array class for the CUPS PPD Compiler.
//
-// Copyright 2007-2014 by Apple Inc.
+// Copyright 2007-2019 by Apple Inc.
// Copyright 2002-2005 by Easy Software Products.
//
// These coded instructions, statements, and computer programs are the
{
PPDC_DELETE;
- for (int i = 0; i < count; i ++)
+ for (size_t i = 0; i < count; i ++)
data[i]->release();
if (alloc)
void
ppdcArray::remove(ppdcShared *d) // I - Data element
{
- int i; // Looping var
+ size_t i; // Looping var
for (i = 0; i < count; i ++)
//
// Definitions for the CUPS PPD Compiler.
//
-// Copyright 2007-2009 by Apple Inc.
+// Copyright 2007-2019 by Apple Inc.
// Copyright 2002-2007 by Easy Software Products.
//
// These coded instructions, statements, and computer programs are the
{
public:
- int count, // Number of elements
+ size_t count, // Number of elements
alloc, // Allocated elements
current; // Current element
ppdcShared **data; // Elements
//
// Test program for message catalog class.
//
-// Copyright 2008 by Apple Inc.
+// Copyright © 2008-2019 by Apple Inc.
//
// These coded instructions, statements, and computer programs are the
// property of Apple Inc. and are protected by Federal copyright
// Scan the command-line...
catalog = new ppdcCatalog(NULL, argv[1]);
- printf("%s: %d messages\n", argv[1], catalog->messages->count);
+ printf("%s: %u messages\n", argv[1], (unsigned)catalog->messages->count);
for (m = (ppdcMessage *)catalog->messages->first();
m;
* created from driver information files, and dynamically generated PPD files
* using driver helper programs.
*
- * Copyright 2007-2018 by Apple Inc.
- * Copyright 1997-2007 by Easy Software Products.
+ * Copyright  2007-2019 by Apple Inc.
+ * Copyright  1997-2007 by Easy Software Products.
*
* These coded instructions, statements, and computer programs are the
* property of Apple Inc. and are protected by Federal copyright
ppdcCatalog *catalog; // Message catalog in .drv file
- fprintf(stderr, "DEBUG2: [cups-driverd] %d locales defined in \"%s\"...\n",
- src->po_files->count, filename);
+ fprintf(stderr, "DEBUG2: [cups-driverd] %u locales defined in \"%s\"...\n", (unsigned)src->po_files->count, filename);
locales = new ppdcArray();
for (catalog = (ppdcCatalog *)src->po_files->first();