]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - cups/testipp.c
Greatly simplify the man page handling.
[thirdparty/cups.git] / cups / testipp.c
index 0a9024f1f82bfadd9a179cfb77d66df95028a7b9..3514b94d5d984b6b5d990761eb311ca918a6525e 100644 (file)
 #include "file.h"
 #include "string-private.h"
 #include "ipp-private.h"
-#ifdef WIN32
+#ifdef _WIN32
 #  include <io.h>
 #else
 #  include <unistd.h>
 #  include <fcntl.h>
-#endif /* WIN32 */
+#endif /* _WIN32 */
 
 
 /*
@@ -738,7 +738,7 @@ main(int  argc,                     /* I - Number of command-line arguments */
 
        if (state != IPP_STATE_DATA)
        {
-         printf("Error reading IPP message from \"%s\".\n", argv[i]);
+         printf("Error reading IPP message from \"%s\": %s\n", argv[i], cupsLastErrorString());
          status = 1;
 
          ippDelete(request);