]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - scheduler/testspeed.c
The scheduler incorrectly started jobs while canceling multiple jobs (STR #4648)
[thirdparty/cups.git] / scheduler / testspeed.c
index 2be9302f538b993c598f06fd42ae2a40f7289e1d..dfd984b156315da93acebd2cb2f61b596c98f2e9 100644 (file)
@@ -1,23 +1,16 @@
 /*
  * "$Id$"
  *
- *   Scheduler speed test for CUPS.
+ * Scheduler speed test for CUPS.
  *
- *   Copyright 2007-2010 by Apple Inc.
- *   Copyright 1997-2005 by Easy Software Products.
+ * Copyright 2007-2014 by Apple Inc.
+ * Copyright 1997-2005 by Easy Software Products.
  *
- *   These coded instructions, statements, and computer programs are the
- *   property of Apple Inc. and are protected by Federal copyright
- *   law.  Distribution and use rights are outlined in the file "LICENSE.txt"
- *   which should have been included with this file.  If this file is
- *   file is missing or damaged, see the license at "http://www.cups.org/".
- *
- * Contents:
- *
- *   main()    - Send multiple IPP requests and report on the average response
- *               time.
- *   do_test() - Run a test on a specific host...
- *   usage()   - Show program usage...
+ * These coded instructions, statements, and computer programs are the
+ * property of Apple Inc. and are protected by Federal copyright
+ * law.  Distribution and use rights are outlined in the file "LICENSE.txt"
+ * which should have been included with this file.  If this file is
+ * file is missing or damaged, see the license at "http://www.cups.org/".
  */
 
 /*
@@ -303,7 +296,7 @@ do_test(const char        *server,  /* I - Server to use */
     if (opstring)
       op = ippOpValue(opstring);
     else
-      op = ops[i % (sizeof(ops) / sizeof(ops[0]))];
+      op = ops[i % (int)(sizeof(ops) / sizeof(ops[0]))];
 
     request = ippNewRequest(op);