]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - cups/getputfile.c
Move debug printfs to internal usage only.
[thirdparty/cups.git] / cups / getputfile.c
index ba88973c005f950dda8d72e19f5a3d7f303f764d..818d5e9f61df8dfcde367fa66ca679737719c504 100644 (file)
  */
 
 #include "cups-private.h"
+#include "debug-internal.h"
 #include <fcntl.h>
 #include <sys/stat.h>
-#if defined(WIN32) || defined(__EMX__)
+#if defined(_WIN32) || defined(__EMX__)
 #  include <io.h>
 #else
 #  include <unistd.h>
-#endif /* WIN32 || __EMX__ */
+#endif /* _WIN32 || __EMX__ */
 
 
 /*
@@ -92,16 +93,7 @@ cupsGetFd(http_t     *http,          /* I - Connection to server or @code CUPS_HTTP_DEFA
       * Update the Digest authentication string...
       */
 
-      if (http->nextnonce[0])
-      {
-        strlcpy(http->nonce, http->nextnonce, sizeof(http->nonce));
-        http->nonce_count = 1;
-        http->nextnonce[0] = '\0';
-      }
-      else
-        http->nonce_count ++;
-
-      _httpSetDigestAuthString(http, "GET", resource);
+      _httpSetDigestAuthString(http, http->nextnonce, "GET", resource);
     }
 
 #ifdef HAVE_GSSAPI
@@ -356,16 +348,7 @@ cupsPutFd(http_t     *http,                /* I - Connection to server or @code CUPS_HTTP_DEFA
       * Update the Digest authentication string...
       */
 
-      if (http->nextnonce[0])
-      {
-        strlcpy(http->nonce, http->nextnonce, sizeof(http->nonce));
-        http->nonce_count = 1;
-        http->nextnonce[0] = '\0';
-      }
-      else
-        http->nonce_count ++;
-
-      _httpSetDigestAuthString(http, "PUT", resource);
+      _httpSetDigestAuthString(http, http->nextnonce, "PUT", resource);
     }
 
 #ifdef HAVE_GSSAPI