summaryrefslogtreecommitdiffstats
path: root/src/providers
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2013-11-09 13:17:24 +0100
committerJakub Hrozek <jhrozek@redhat.com>2013-11-27 18:24:45 +0100
commit19a410288778a3aaf6a01bc71cacb8cb46465875 (patch)
tree464146a04d5c5af6a095e2c752ff5816e55be368 /src/providers
parent29d85ae19933805622fdcead4ea43ba2d06cc3f0 (diff)
downloadsssd-19a410288778a3aaf6a01bc71cacb8cb46465875.tar.gz
sssd-19a410288778a3aaf6a01bc71cacb8cb46465875.tar.xz
sssd-19a410288778a3aaf6a01bc71cacb8cb46465875.zip
Remove unused parameter from save_netgroup
Diffstat (limited to 'src/providers')
-rw-r--r--src/providers/proxy/proxy.h1
-rw-r--r--src/providers/proxy/proxy_id.c2
-rw-r--r--src/providers/proxy/proxy_netgroup.c6
3 files changed, 3 insertions, 6 deletions
diff --git a/src/providers/proxy/proxy.h b/src/providers/proxy/proxy.h
index 179245fed..7f4dfc984 100644
--- a/src/providers/proxy/proxy.h
+++ b/src/providers/proxy/proxy.h
@@ -149,7 +149,6 @@ void proxy_pam_handler(struct be_req *req);
/* From proxy_netgroup.c */
errno_t get_netgroup(struct proxy_id_ctx *ctx,
- struct sysdb_ctx *sysdb,
struct sss_domain_info *dom,
const char *name);
diff --git a/src/providers/proxy/proxy_id.c b/src/providers/proxy/proxy_id.c
index f78d82b6a..4ed943ad4 100644
--- a/src/providers/proxy/proxy_id.c
+++ b/src/providers/proxy/proxy_id.c
@@ -1463,7 +1463,7 @@ void proxy_get_account_info(struct be_req *breq)
ENODEV, "Netgroups are not supported");
}
- ret = get_netgroup(ctx, sysdb, domain, ar->filter_value);
+ ret = get_netgroup(ctx, domain, ar->filter_value);
break;
case BE_REQ_SERVICES:
diff --git a/src/providers/proxy/proxy_netgroup.c b/src/providers/proxy/proxy_netgroup.c
index a201b2607..0aeb7cfe4 100644
--- a/src/providers/proxy/proxy_netgroup.c
+++ b/src/providers/proxy/proxy_netgroup.c
@@ -66,8 +66,7 @@ static errno_t make_netgroup_attr(struct __netgrent netgrent,
return EOK;
}
-static errno_t save_netgroup(struct sysdb_ctx *sysdb,
- struct sss_domain_info *domain,
+static errno_t save_netgroup(struct sss_domain_info *domain,
const char *name,
struct sysdb_attrs *attrs,
bool lowercase,
@@ -137,7 +136,6 @@ static errno_t handle_error(enum nss_status status,
}
errno_t get_netgroup(struct proxy_id_ctx *ctx,
- struct sysdb_ctx *sysdb,
struct sss_domain_info *dom,
const char *name)
{
@@ -199,7 +197,7 @@ errno_t get_netgroup(struct proxy_id_ctx *ctx,
goto done;
}
- ret = save_netgroup(sysdb, dom, name, attrs,
+ ret = save_netgroup(dom, name, attrs,
!dom->case_sensitive,
dom->netgroup_timeout);
if (ret != EOK) {