summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2013-11-09 12:08:53 +0100
committerJakub Hrozek <jhrozek@redhat.com>2013-11-27 18:24:45 +0100
commit11ab7f35db65cd647d0d90d7ec3180f352bfe4e8 (patch)
tree2ca94bbf7b4e386fb49677939cbcbc9cb0194c38
parent8ff4a9281cf2f22f506ade20b20f2ac55ec9be32 (diff)
downloadsssd-11ab7f35db65cd647d0d90d7ec3180f352bfe4e8.tar.gz
sssd-11ab7f35db65cd647d0d90d7ec3180f352bfe4e8.tar.xz
sssd-11ab7f35db65cd647d0d90d7ec3180f352bfe4e8.zip
Remove unused parameter from mod_groups_member
-rw-r--r--src/tools/sss_sync_ops.c21
1 files changed, 10 insertions, 11 deletions
diff --git a/src/tools/sss_sync_ops.c b/src/tools/sss_sync_ops.c
index 121efa6cc..b4b1e99a3 100644
--- a/src/tools/sss_sync_ops.c
+++ b/src/tools/sss_sync_ops.c
@@ -52,8 +52,7 @@ struct sync_op_res {
/*
* Generic modify groups member
*/
-static int mod_groups_member(struct sysdb_ctx *sysdb,
- struct sss_domain_info *dom,
+static int mod_groups_member(struct sss_domain_info *dom,
char **grouplist,
struct ldb_dn *member_dn,
int optype)
@@ -90,11 +89,11 @@ done:
return ret;
}
-#define add_to_groups(sysdb, data, member_dn) \
- mod_groups_member(sysdb, data->domain, data->addgroups, member_dn, \
+#define add_to_groups(data, member_dn) \
+ mod_groups_member(data->domain, data->addgroups, member_dn, \
LDB_FLAG_MOD_ADD)
-#define remove_from_groups(sysdb, data, member_dn) \
- mod_groups_member(sysdb, data->domain, data->rmgroups, member_dn, \
+#define remove_from_groups(data, member_dn) \
+ mod_groups_member(data->domain, data->rmgroups, member_dn, \
LDB_FLAG_MOD_DELETE)
/*
@@ -226,14 +225,14 @@ int usermod(TALLOC_CTX *mem_ctx,
}
if (data->rmgroups != NULL) {
- ret = remove_from_groups(sysdb, data, member_dn);
+ ret = remove_from_groups(data, member_dn);
if (ret) {
return ret;
}
}
if (data->addgroups != NULL) {
- ret = add_to_groups(sysdb, data, member_dn);
+ ret = add_to_groups(data, member_dn);
if (ret) {
return ret;
}
@@ -281,14 +280,14 @@ int groupmod(TALLOC_CTX *mem_ctx,
}
if (data->rmgroups != NULL) {
- ret = remove_from_groups(sysdb, data, member_dn);
+ ret = remove_from_groups(data, member_dn);
if (ret) {
return ret;
}
}
if (data->addgroups != NULL) {
- ret = add_to_groups(sysdb, data, member_dn);
+ ret = add_to_groups(data, member_dn);
if (ret) {
return ret;
}
@@ -484,7 +483,7 @@ int useradd(TALLOC_CTX *mem_ctx,
goto done;
}
- ret = add_to_groups(sysdb, data, member_dn);
+ ret = add_to_groups(data, member_dn);
if (ret) {
goto done;
}