summaryrefslogtreecommitdiffstats
path: root/source/nsswitch/wb_common.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2008-02-11 18:35:58 +0100
committerStefan Metzmacher <metze@samba.org>2008-02-13 10:44:52 +0100
commit5f623f54a919cc687d0ff16c16038c05a501008d (patch)
tree4eebcd7ccea88aa0fd74dfbf4db895ccfb0b2e22 /source/nsswitch/wb_common.c
parent26d012dd3de8ec146eb22656f1ed8eef110e4be6 (diff)
downloadsamba-5f623f54a919cc687d0ff16c16038c05a501008d.tar.gz
samba-5f623f54a919cc687d0ff16c16038c05a501008d.tar.xz
samba-5f623f54a919cc687d0ff16c16038c05a501008d.zip
nsswitch: convert winbind_env_set(), winbind_on() and winbind_off() into macros
metze
Diffstat (limited to 'source/nsswitch/wb_common.c')
-rw-r--r--source/nsswitch/wb_common.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/source/nsswitch/wb_common.c b/source/nsswitch/wb_common.c
index 49a2935bffb..b113fc3336e 100644
--- a/source/nsswitch/wb_common.c
+++ b/source/nsswitch/wb_common.c
@@ -538,18 +538,6 @@ int winbindd_read_reply(struct winbindd_response *response)
return result1 + result2;
}
-bool winbind_env_set(void)
-{
- char *env;
-
- if ((env=getenv(WINBINDD_DONT_ENV)) != NULL) {
- if(strcmp(env, "1") == 0) {
- return true;
- }
- }
- return false;
-}
-
/*
* send simple types of requests
*/
@@ -663,21 +651,6 @@ NSS_STATUS winbindd_priv_request_response(int req_type,
}
/*************************************************************************
- A couple of simple functions to disable winbindd lookups and re-
- enable them
- ************************************************************************/
-
-bool winbind_off(void)
-{
- return setenv(WINBINDD_DONT_ENV, "1", 1) != -1;
-}
-
-bool winbind_on(void)
-{
- return setenv(WINBINDD_DONT_ENV, "0", 1) != -1;
-}
-
-/*************************************************************************
************************************************************************/
const char *nss_err_str(NSS_STATUS ret)