/*
- * "$Id: testarray.c 6649 2007-07-11 21:46:42Z mike $"
+ * Array test program for CUPS.
*
- * Array test program for CUPS.
+ * Copyright 2007-2014 by Apple Inc.
+ * Copyright 1997-2006 by Easy Software Products.
*
- * Copyright 2007-2012 by Apple Inc.
- * Copyright 1997-2006 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/".
- *
- * This file is subject to the Apple OS-Developed Software exception.
- *
- * Contents:
- *
- * main() - Main entry.
- * get_seconds() - Get the current time in seconds...
- * load_words() - Load words from a file.
+ * Licensed under Apache License v2.0. See the file "LICENSE" for more information.
*/
/*
*/
int /* O - Exit status */
-main(int argc, /* I - Number of command-line arguments */
- char *argv[]) /* I - Command-line arguments */
+main(void)
{
int i; /* Looping var */
cups_array_t *array, /* Test array */
puts("PASS");
else
{
- printf("FAIL (returned %p with %d elements, expected pointer with 4 elements)\n",
- dup_array, cupsArrayCount(dup_array));
+ printf("FAIL (returned %p with %d elements, expected pointer with 4 elements)\n", (void *)dup_array, cupsArrayCount(dup_array));
status ++;
}
{
while ((dent = cupsDirRead(dir)) != NULL)
{
- i = strlen(dent->filename) - 2;
+ i = (int)strlen(dent->filename) - 2;
if (i > 0 && dent->filename[i] == '.' &&
(dent->filename[i + 1] == 'c' ||
* 'get_seconds()' - Get the current time in seconds...
*/
-#ifdef WIN32
+#ifdef _WIN32
# include <windows.h>
gettimeofday(&curtime, NULL);
return (curtime.tv_sec + 0.000001 * curtime.tv_usec);
}
-#endif /* WIN32 */
+#endif /* _WIN32 */
/*
return (1);
}
-
-
-/*
- * End of "$Id: testarray.c 6649 2007-07-11 21:46:42Z mike $".
- */