]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
basic_smb_lm_auth: fix 'no previous declaration' warnings (#1462)
authorEgor Ignatov <master.egor.ignatov@gmail.com>
Thu, 24 Aug 2023 14:20:21 +0000 (14:20 +0000)
committerAmos Jeffries <yadij@users.noreply.github.com>
Thu, 31 Aug 2023 14:07:48 +0000 (02:07 +1200)
... that breaks build with --enable-strict-error-checking

src/auth/basic/SMB_LM/msntauth.cc

index c211a73a8992dee0fdc00ed433c4faa082853af2..dafb01d42d68fe9961517805736e6889f505b79a 100644 (file)
@@ -60,7 +60,7 @@ struct domaincontroller {
 typedef std::vector<domaincontroller> domaincontrollers_t;
 domaincontrollers_t domaincontrollers;
 
-bool
+static bool
 validate_user(char *username, char *password)
 {
     for (domaincontrollers_t::iterator dc = domaincontrollers.begin(); dc != domaincontrollers.end(); ++dc) {
@@ -74,7 +74,7 @@ validate_user(char *username, char *password)
 }
 
 static char instructions[] = "Usage instructions: basic_nsnt_auth <domainname>/<domaincontroller> [<domainname>/<domaincontroller> ...]";
-void
+static void
 display_usage_instructions()
 {
     using std::endl;