diff options
author | unknown <miguel@hegel.local> | 2002-11-12 22:11:59 -0200 |
---|---|---|
committer | unknown <miguel@hegel.local> | 2002-11-12 22:11:59 -0200 |
commit | 0e0c38b87891c9e2178c48c22693141135505607 (patch) | |
tree | fd12e37213998871208b050a59cd84d1ff29015c /sql/nt_servc.cc | |
parent | 4fe6a6c2fd074df199a8417a76be7839cb6c4f6b (diff) | |
download | mariadb-git-0e0c38b87891c9e2178c48c22693141135505607.tar.gz |
Typo fix (duplicate functions body)
sql/nt_servc.cc:
Typo fix (duplicate fuctions body)
Diffstat (limited to 'sql/nt_servc.cc')
-rw-r--r-- | sql/nt_servc.cc | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/sql/nt_servc.cc b/sql/nt_servc.cc index 2d0eae125d6..b917c91ce15 100644 --- a/sql/nt_servc.cc +++ b/sql/nt_servc.cc @@ -568,31 +568,3 @@ BOOL NTService::is_super_user() FreeSid(psidAdministrators); return ret_value; } -/* ------------------------------------------------------------------------ - -------------------------------------------------------------------------- */ -BOOL NTService::IsService(LPCSTR ServiceName) -{ - BOOL ret_value=FALSE; - SC_HANDLE service, scm; - - if (scm = OpenSCManager(0, 0,SC_MANAGER_ENUMERATE_SERVICE)) - { - if ((service = OpenService(scm,ServiceName, SERVICE_ALL_ACCESS ))) - { - ret_value=TRUE; - CloseServiceHandle(service); - } - CloseServiceHandle(scm); - } - return ret_value; -} -/* ------------------------------------------------------------------------ - -------------------------------------------------------------------------- */ -BOOL NTService::got_service_option(char **argv, char *service_option) -{ - char *option; - for (option= argv[1]; *option; option++) - if (!strcmp(option, service_option)) - return TRUE; - return FALSE; -} |