]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - helpers/ntlm_auth/fake/ntlm_fake_auth.cc
SourceFormat Enforcement
[thirdparty/squid.git] / helpers / ntlm_auth / fake / ntlm_fake_auth.cc
index d4ed91777e102f799c35194401ae88d60e915f5c..ecdc5da32497d0ae67b8ccaa8fdd046a73a3d64a 100644 (file)
@@ -115,7 +115,7 @@ process_options(int argc, char *argv[])
             exit(0);
         case '?':
             opt = optopt;
-            /* fall thru to default */
+        /* fall thru to default */
         default:
             fprintf(stderr, "unknown option: -%c. Exiting\n", opt);
             usage();
@@ -150,11 +150,11 @@ main(int argc, char *argv[])
     debug("%s build " __DATE__ ", " __TIME__ " starting up...\n", my_program_name);
 
     while (fgets(buf, HELPER_INPUT_BUFFER, stdin) != NULL) {
-        user[0] = '\0';                /*no user code */
-        domain[0] = '\0';              /*no domain code */
+        user[0] = '\0';     /*no user code */
+        domain[0] = '\0';       /*no domain code */
 
         if ((p = strchr(buf, '\n')) != NULL)
-            *p = '\0';         /* strip \n */
+            *p = '\0';      /* strip \n */
         buflen = strlen(buf);   /* keep this so we only scan the buffer for \0 once per loop */
         if (buflen > 3) {
             decodedLen = base64_decode(decodedBuf, sizeof(decodedBuf), buf+3);
@@ -214,3 +214,4 @@ main(int argc, char *argv[])
     }
     exit(0);
 }
+