From 32c7b5c1c8c358b33350b264bbf74f86e9cb1815 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20B=C5=99ezina?= Date: Wed, 25 Nov 2015 13:21:49 +0100 Subject: [PATCH] SUDO: make sdap_sudo_handler static MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Jakub Hrozek Reviewed-by: Lukáš Slebodník (cherry picked from commit 895b8d884d0f5277e181fe1212ec0c0daaf3977d) --- src/providers/ldap/sdap_sudo.c | 4 +++- src/providers/ldap/sdap_sudo.h | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) 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,