From: Samuel Cabrero Date: Mon, 18 Apr 2022 14:44:23 +0000 (+0200) Subject: s3:winbind: Use uint8_t for authoritative flag X-Git-Tag: talloc-2.3.4~306 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=efc97296d95a6f00005a9d5313ce37c8db14b5a5;p=thirdparty%2Fsamba.git s3:winbind: Use uint8_t for authoritative flag It is the type used in the winbindd_response struct. Signed-off-by: Samuel Cabrero Reviewed-by: Jeremy Allison --- diff --git a/source3/winbindd/winbindd_pam_auth_crap.c b/source3/winbindd/winbindd_pam_auth_crap.c index a6f13806df9..98c43cdaa29 100644 --- a/source3/winbindd/winbindd_pam_auth_crap.c +++ b/source3/winbindd/winbindd_pam_auth_crap.c @@ -26,7 +26,7 @@ struct winbindd_pam_auth_crap_state { struct winbindd_response *response; - bool authoritative; + uint8_t authoritative; uint32_t flags; }; @@ -48,7 +48,7 @@ struct tevent_req *winbindd_pam_auth_crap_send( if (req == NULL) { return NULL; } - state->authoritative = true; + state->authoritative = 1; state->flags = request->flags; if (state->flags & WBFLAG_PAM_AUTH_PAC) { @@ -131,7 +131,7 @@ struct tevent_req *winbindd_pam_auth_crap_send( * We don't know the domain so * we're not authoritative */ - state->authoritative = false; + state->authoritative = 0; tevent_req_nterror(req, NT_STATUS_NO_SUCH_USER); return tevent_req_post(req, ev); }