summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Březina <pbrezina@redhat.com>2015-11-25 13:21:49 +0100
committerLukas Slebodnik <lslebodn@redhat.com>2015-12-15 16:27:25 +0100
commit895b8d884d0f5277e181fe1212ec0c0daaf3977d (patch)
tree0d12a2c85176c1009b7d27bbf0acbccb1a621785
parent38262a2622af9fe71ca336799da6e88d91be0d81 (diff)
downloadsssd-895b8d884d0f5277e181fe1212ec0c0daaf3977d.tar.gz
sssd-895b8d884d0f5277e181fe1212ec0c0daaf3977d.tar.xz
sssd-895b8d884d0f5277e181fe1212ec0c0daaf3977d.zip
SUDO: make sdap_sudo_handler static
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
-rw-r--r--src/providers/ldap/sdap_sudo.c4
-rw-r--r--src/providers/ldap/sdap_sudo.h2
2 files changed, 4 insertions, 2 deletions
diff --git a/src/providers/ldap/sdap_sudo.c b/src/providers/ldap/sdap_sudo.c
index a524601c5..550784842 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 6b4d249a8..d2fa9bec4 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,