summaryrefslogtreecommitdiff
path: root/src/responder/sudo
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2013-03-07 11:54:01 +0100
committerJakub Hrozek <jhrozek@redhat.com>2013-03-07 13:47:27 +0100
commit400833cf54777ad44247c6adaf29b586bc83eb14 (patch)
tree84dc22fc4a2e7a79cd0769fc58cf60e729e2bad1 /src/responder/sudo
parentb8e6d0e6d6b9b56ef508578a2ae0078b5b7d22d0 (diff)
downloadsssd-400833cf54777ad44247c6adaf29b586bc83eb14.tar.gz
sssd-400833cf54777ad44247c6adaf29b586bc83eb14.tar.bz2
sssd-400833cf54777ad44247c6adaf29b586bc83eb14.zip
Removing unused parameter type from sudosrv_get_sudorules_query_cache()
https://fedorahosted.org/sssd/ticket/1825
Diffstat (limited to 'src/responder/sudo')
-rw-r--r--src/responder/sudo/sudosrv_get_sudorules.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/responder/sudo/sudosrv_get_sudorules.c b/src/responder/sudo/sudosrv_get_sudorules.c
index 76eae222..f1537820 100644
--- a/src/responder/sudo/sudosrv_get_sudorules.c
+++ b/src/responder/sudo/sudosrv_get_sudorules.c
@@ -306,7 +306,6 @@ sudosrv_dp_req_done(struct tevent_req *req);
static errno_t sudosrv_get_sudorules_query_cache(TALLOC_CTX *mem_ctx,
struct sysdb_ctx *sysdb,
struct sss_domain_info *domain,
- enum sss_dp_sudo_type type,
const char **attrs,
unsigned int flags,
const char *username,
@@ -370,8 +369,8 @@ errno_t sudosrv_get_rules(struct sudo_cmd_ctx *cmd_ctx)
| SYSDB_SUDO_FILTER_ONLY_EXPIRED
| SYSDB_SUDO_FILTER_USERINFO;
ret = sudosrv_get_sudorules_query_cache(tmp_ctx, cmd_ctx->domain->sysdb,
- cmd_ctx->domain, cmd_ctx->type,
- attrs, flags, cmd_ctx->orig_username,
+ cmd_ctx->domain, attrs, flags,
+ cmd_ctx->orig_username,
cmd_ctx->uid, groupnames,
&expired_rules, &expired_rules_num);
if (ret != EOK) {
@@ -577,8 +576,8 @@ static errno_t sudosrv_get_sudorules_from_cache(TALLOC_CTX *mem_ctx,
}
ret = sudosrv_get_sudorules_query_cache(tmp_ctx, cmd_ctx->domain->sysdb,
- cmd_ctx->domain, cmd_ctx->type,
- attrs, flags, cmd_ctx->orig_username,
+ cmd_ctx->domain, attrs, flags,
+ cmd_ctx->orig_username,
cmd_ctx->uid, groupnames,
&rules, &num_rules);
if (ret != EOK) {
@@ -610,7 +609,6 @@ sort_sudo_rules(struct sysdb_attrs **rules, size_t count);
static errno_t sudosrv_get_sudorules_query_cache(TALLOC_CTX *mem_ctx,
struct sysdb_ctx *sysdb,
struct sss_domain_info *domain,
- enum sss_dp_sudo_type type,
const char **attrs,
unsigned int flags,
const char *username,