From b8aefdc711962bdd74c0bf44fa56ef3ce4fa3214 Mon Sep 17 00:00:00 2001 From: Egor Ignatov Date: Thu, 24 Aug 2023 14:20:21 +0000 Subject: [PATCH] basic_smb_lm_auth: fix 'no previous declaration' warnings (#1462) ... that breaks build with --enable-strict-error-checking --- src/auth/basic/SMB_LM/msntauth.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.47.2