Skip to content

Commit

Permalink
SUDO: make sdap_sudo_handler static
Browse files Browse the repository at this point in the history
Reviewed-by: Jakub Hrozek <[email protected]>
Reviewed-by: Lukáš Slebodník <[email protected]>
(cherry picked from commit 895b8d8)
  • Loading branch information
pbrezina authored and Lukas Slebodnik committed Dec 15, 2015
1 parent bbfbada commit 32c7b5c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/providers/ldap/sdap_sudo.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/providers/ldap/sdap_sudo.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 32c7b5c

Please sign in to comment.