]> granicus.if.org Git - curl/commitdiff
Fixed compiler warning in Windows SSPI case
authorDan Fandrich <dan@coneharvesters.com>
Tue, 26 Apr 2011 04:58:37 +0000 (21:58 -0700)
committerDan Fandrich <dan@coneharvesters.com>
Tue, 26 Apr 2011 04:58:37 +0000 (21:58 -0700)
lib/http_ntlm.c

index 47b7a75f47bd483a5809b0d83ff1a4248ad63a3c..3900f401a93755d7c93b0029c56370e124171cc9 100644 (file)
@@ -658,6 +658,7 @@ ntlm_sspi_cleanup(struct ntlmdata *ntlm)
 
 #define HOSTNAME_MAX 1024
 
+#ifndef USE_WINDOWS_SSPI
 /* copy the source to the destination and fill in zeroes in every
    other destination byte! */
 static void unicodecpy(unsigned char *dest,
@@ -669,6 +670,7 @@ static void unicodecpy(unsigned char *dest,
     dest[2*i+1] = '\0';
   }
 }
+#endif
 
 /* this is for creating ntlm header output */
 CURLcode Curl_output_ntlm(struct connectdata *conn,