From 80d40172efa3b5c051cc4a40d5599f73e6481737 Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Thu, 19 Oct 2006 22:41:11 +0000 Subject: r19420: Remove strequal and use strcmp() instead. Meant to make the change before theprevious commit. (This used to be commit 815388c4c8be1274359679077a120fec4cc39b0f) --- source3/nsswitch/wb_common.c | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) (limited to 'source3/nsswitch') diff --git a/source3/nsswitch/wb_common.c b/source3/nsswitch/wb_common.c index 05238f16fb..19ee72f9e4 100644 --- a/source3/nsswitch/wb_common.c +++ b/source3/nsswitch/wb_common.c @@ -518,6 +518,18 @@ int 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 */ @@ -628,14 +640,3 @@ BOOL winbind_on( void ) return putenv(s) != -1; } -BOOL winbind_env_set( void ) -{ - char *env; - - if ((env=getenv(WINBINDD_DONT_ENV)) != NULL) { - if(strequal(env, "1")) { - return True; - } - } - return False; -} -- cgit