diff --git a/src/providers/ldap/sdap_sudo.c b/src/providers/ldap/sdap_sudo.c index 61366df433e..24642344491 100644 --- a/src/providers/ldap/sdap_sudo.c +++ b/src/providers/ldap/sdap_sudo.c @@ -30,6 +30,8 @@ #include "providers/ldap/sdap_sudo_cache.h" #include "db/sysdb_sudo.h" +static void sdap_sudo_handler(struct be_req *breq); + struct bet_ops sdap_sudo_ops = { .handler = sdap_sudo_handler, .finalize = NULL @@ -150,7 +152,7 @@ static void sdap_sudo_reply(struct tevent_req *req) sdap_handler_done(be_req, dp_error, ret, strerror(ret)); } -void sdap_sudo_handler(struct be_req *be_req) +static void sdap_sudo_handler(struct be_req *be_req) { struct be_ctx *be_ctx = be_req_get_be_ctx(be_req); struct tevent_req *req = NULL; diff --git a/src/providers/ldap/sdap_sudo.h b/src/providers/ldap/sdap_sudo.h index 6b4d249a810..d2fa9bec41a 100644 --- a/src/providers/ldap/sdap_sudo.h +++ b/src/providers/ldap/sdap_sudo.h @@ -40,7 +40,7 @@ struct sdap_sudo_ctx { }; /* Common functions from ldap_sudo.c */ -void sdap_sudo_handler(struct be_req *breq); + int sdap_sudo_init(struct be_ctx *be_ctx, struct sdap_id_ctx *id_ctx, struct bet_ops **ops,