--------------------- PatchSet 2150 Date: 2001/04/29 15:29:18 Author: serassio Branch: cygwin Tag: (none) Log: NT_auth basic authentication helper: Removed a compilation warning in valid.c Members: src/auth/basic/helpers/NT/NT_auth.c:1.1.2.2->1.1.2.3 src/auth/basic/helpers/NT/valid.c:1.1.2.2->1.1.2.3 Index: squid/src/auth/basic/helpers/NT/NT_auth.c =================================================================== RCS file: /cvsroot/squid-sf//squid/src/auth/basic/helpers/NT/Attic/NT_auth.c,v retrieving revision 1.1.2.2 retrieving revision 1.1.2.3 diff -u -r1.1.2.2 -r1.1.2.3 --- squid/src/auth/basic/helpers/NT/NT_auth.c 27 Apr 2001 22:06:42 -0000 1.1.2.2 +++ squid/src/auth/basic/helpers/NT/NT_auth.c 29 Apr 2001 15:29:18 -0000 1.1.2.3 @@ -38,7 +38,7 @@ /* Main program for simple authentication. Scans and checks for Squid input, and attempts to validate the user. */ -#ifdef _SQUID_CYGWIN_ +#if defined(_SQUID_CYGWIN_) static char NTGroup[256]; int @@ -64,7 +64,7 @@ { #endif -#ifdef _SQUID_CYGWIN_ +#if defined(_SQUID_CYGWIN_) char wstr[256]; char username[256]; char password[256]; @@ -90,7 +90,7 @@ #endif /* Check for invalid or blank entries */ if ((username[0] == '\0') || (password[0] == '\0')) { -#ifdef _SQUID_CYGWIN_ +#if defined(_SQUID_CYGWIN_) puts("ERR"); fflush(stdout); continue; @@ -100,13 +100,13 @@ #endif } if (Valid_User(username, password, NTGroup) == NTV_NO_ERROR) -#ifdef _SQUID_CYGWIN_ +#if defined(_SQUID_CYGWIN_) puts("OK"); #else (callback) (data, "OK"); #endif else -#ifdef _SQUID_CYGWIN_ +#if defined(_SQUID_CYGWIN_) puts("ERR"); fflush(stdout); } Index: squid/src/auth/basic/helpers/NT/valid.c =================================================================== RCS file: /cvsroot/squid-sf//squid/src/auth/basic/helpers/NT/Attic/valid.c,v retrieving revision 1.1.2.2 retrieving revision 1.1.2.3 diff -u -r1.1.2.2 -r1.1.2.3 --- squid/src/auth/basic/helpers/NT/valid.c 27 Apr 2001 22:06:42 -0000 1.1.2.2 +++ squid/src/auth/basic/helpers/NT/valid.c 29 Apr 2001 15:29:18 -0000 1.1.2.3 @@ -1,6 +1,8 @@ -#include +#include "squid.h" #include -#include +#if defined(_SQUID_CYGWIN_) +#include +#endif #include #include #include "valid.h"