summaryrefslogtreecommitdiffstats
path: root/source/nsswitch/smb_krb5_locator.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/nsswitch/smb_krb5_locator.c')
-rw-r--r--source/nsswitch/smb_krb5_locator.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/source/nsswitch/smb_krb5_locator.c b/source/nsswitch/smb_krb5_locator.c
index 5de080c7baa..18a9fe3429f 100644
--- a/source/nsswitch/smb_krb5_locator.c
+++ b/source/nsswitch/smb_krb5_locator.c
@@ -24,7 +24,6 @@
#endif
#if defined(HAVE_KRB5) && defined(HAVE_KRB5_LOCATE_PLUGIN_H)
-BOOL winbind_env_set(void);
#include <krb5/locate_plugin.h>
@@ -240,7 +239,7 @@ void smb_krb5_locator_close(void *private_data)
}
-static int ask_winbind(const char *realm, char **dcname)
+static bool ask_winbind(const char *realm, char **dcname)
{
NSS_STATUS status;
struct winbindd_request request;
@@ -265,15 +264,15 @@ static int ask_winbind(const char *realm, char **dcname)
fprintf(stderr,"[%5u]: smb_krb5_locator_lookup: failed with: %s\n",
(unsigned int)getpid(), nss_err_str(status));
#endif
- return False;
+ return false;
}
*dcname = strdup(response.data.dc_name);
if (!*dcname) {
- return False;
+ return false;
}
- return True;
+ return true;
}
/**