From: Egor Ignatov Date: Thu, 24 Aug 2023 14:20:21 +0000 (+0000) Subject: basic_smb_lm_auth: fix 'no previous declaration' warnings (#1462) X-Git-Tag: SQUID_7_0_1~365 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9fb4ef4ef3e74cef80f915b79688e360758c3ef2;p=thirdparty%2Fsquid.git basic_smb_lm_auth: fix 'no previous declaration' warnings (#1462) ... that breaks build with --enable-strict-error-checking --- diff --git a/src/auth/basic/SMB_LM/msntauth.cc b/src/auth/basic/SMB_LM/msntauth.cc index c211a73a89..dafb01d42d 100644 --- a/src/auth/basic/SMB_LM/msntauth.cc +++ b/src/auth/basic/SMB_LM/msntauth.cc @@ -60,7 +60,7 @@ struct domaincontroller { typedef std::vector 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 / [/ ...]"; -void +static void display_usage_instructions() { using std::endl;