]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - systemv/cupstestdsc.c
Fix .PHONY declaration
[thirdparty/cups.git] / systemv / cupstestdsc.c
index 5ec01aee7dec7459b1166ec229232eb9d75b22bd..84c4e987ebcd070845c0bb2d0d77f153bef70ebe 100644 (file)
@@ -1,26 +1,18 @@
 /*
- * "$Id: cupstestdsc.c 7720 2008-07-11 22:46:21Z mike $"
+ * DSC test program for CUPS.
  *
- *   DSC test program for CUPS.
+ * Copyright 2007-2010 by Apple Inc.
+ * Copyright 2006 by Easy Software Products, all rights reserved.
  *
- *   Copyright 2007-2010 by Apple Inc.
- *   Copyright 2006 by Easy Software Products, all rights reserved.
+ * 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
+ * missing or damaged, see the license at "http://www.cups.org/".
  *
- *   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/".
+ * PostScript is a trademark of Adobe Systems, Inc.
  *
- *   PostScript is a trademark of Adobe Systems, Inc.
- *
- *   This file is subject to the Apple OS-Developed Software exception.
- *
- * Contents:
- *
- *   main()  - Main entry for test program.
- *   check() - Check a file for conformance.
- *   usage() - Show program usage.
+ * This file is subject to the Apple OS-Developed Software exception.
  */
 
 /*
@@ -195,7 +187,7 @@ check_file(const char *filename)    /* I - File to read from */
        return (1);
       }
       else
-        version = atof(line + 11);
+        version = (float)atof(line + 11);
     }
     else if (level > 0)
     {
@@ -324,7 +316,7 @@ check_file(const char *filename)    /* I - File to read from */
         saw_trailer = 1;
     }
 
-    for (i = 0; !binary && i < bytes; i ++)
+    for (i = 0; !binary && i < (int)bytes; i ++)
     {
       ch = line[i];
 
@@ -435,8 +427,3 @@ usage(void)
 
   exit(1);
 }
-
-
-/*
- * End of "$Id: cupstestdsc.c 7720 2008-07-11 22:46:21Z mike $".
- */