]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - cups/testfile.c
Remove svn:keywords since they cause svn_load_dirs.pl to complain about every file.
[thirdparty/cups.git] / cups / testfile.c
index 60822a2763fe9c1bdbb9a0432097ea06e7511833..56f4d5a634c07bdb6484df07f3dd2e8a5b129312 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * "$Id: testfile.c 4942 2006-01-18 19:49:15Z mike $"
+ * "$Id: testfile.c 177 2006-06-21 00:20:03Z jlovell $"
  *
  *   File test program for the Common UNIX Printing System (CUPS).
  *
@@ -39,7 +39,9 @@
 #include "string.h"
 #include "file.h"
 #include "debug.h"
-#include <zlib.h>
+#ifdef HAVE_LIBZ
+#  include <zlib.h>
+#endif /* HAVE_LIBZ */
 
 
 /*
@@ -84,8 +86,8 @@ main(int  argc,                               /* I - Number of command-line arguments */
     */
 
     fputs("cupsFileFind: ", stdout);
-    if (cupsFileFind("cat", "/bin", filename, sizeof(filename)) &&
-       cupsFileFind("cat", "/bin:/usr/bin", filename, sizeof(filename)))
+    if (cupsFileFind("cat", "/bin", 1, filename, sizeof(filename)) &&
+       cupsFileFind("cat", "/bin:/usr/bin", 1, filename, sizeof(filename)))
       printf("PASS (%s)\n", filename);
     else
     {
@@ -442,5 +444,5 @@ read_write_tests(int compression)   /* I - Use compression? */
 
 
 /*
- * End of "$Id: testfile.c 4942 2006-01-18 19:49:15Z mike $".
+ * End of "$Id: testfile.c 177 2006-06-21 00:20:03Z jlovell $".
  */