]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - scheduler/testspeed.c
Stop advertising the HTTP methods that are supported (Issue #5540)
[thirdparty/cups.git] / scheduler / testspeed.c
index 2be9302f538b993c598f06fd42ae2a40f7289e1d..7cd875c972577f7ca3dca94f499ddcd36577eee8 100644 (file)
@@ -1,23 +1,10 @@
 /*
- * "$Id$"
+ * Scheduler speed test for CUPS.
  *
- *   Scheduler speed test for CUPS.
+ * Copyright 2007-2014 by Apple Inc.
+ * Copyright 1997-2005 by Easy Software Products.
  *
- *   Copyright 2007-2010 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...
+ * Licensed under Apache License v2.0.  See the file "LICENSE" for more information.
  */
 
 /*
@@ -40,7 +27,7 @@
 static int     do_test(const char *server, int port,
                        http_encryption_t encryption, int requests,
                        const char *opstring, int verbose);
-static void    usage(void) __attribute__((noreturn));
+static void    usage(void) _CUPS_NORETURN;
 
 
 /*
@@ -303,7 +290,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);
 
@@ -379,9 +366,3 @@ usage(void)
        "[-E] hostname[:port]");
   exit(0);
 }
-
-
-
-/*
- * End of "$Id$".
- */