summaryrefslogtreecommitdiffstats
path: root/src/tools/sss_cache.c
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2013-11-09 12:45:30 +0100
committerJakub Hrozek <jhrozek@redhat.com>2013-11-27 18:24:45 +0100
commit78c4b29420855b9f5384cd5e052fc9369c57d899 (patch)
tree646649c1422ce307739c3b37deec265094711678 /src/tools/sss_cache.c
parente2640b7a0ccfe2b00311d20ae18006ccc82a834c (diff)
downloadsssd-78c4b29420855b9f5384cd5e052fc9369c57d899.tar.gz
sssd-78c4b29420855b9f5384cd5e052fc9369c57d899.tar.xz
sssd-78c4b29420855b9f5384cd5e052fc9369c57d899.zip
Remove unused parameter from search_autofsmaps
Diffstat (limited to 'src/tools/sss_cache.c')
-rw-r--r--src/tools/sss_cache.c19
1 files changed, 8 insertions, 11 deletions
diff --git a/src/tools/sss_cache.c b/src/tools/sss_cache.c
index 934855127..0bf029ebb 100644
--- a/src/tools/sss_cache.c
+++ b/src/tools/sss_cache.c
@@ -55,7 +55,7 @@ enum sss_cache_entry {
TYPE_AUTOFSMAP
};
-static errno_t search_autofsmaps(TALLOC_CTX *mem_ctx, struct sysdb_ctx *sysdb,
+static errno_t search_autofsmaps(TALLOC_CTX *mem_ctx,
struct sss_domain_info *domain,
const char *sub_filter, const char **attrs,
size_t *msgs_count, struct ldb_message ***msgs);
@@ -91,7 +91,6 @@ static errno_t invalidate_entry(TALLOC_CTX *ctx,
const char *name, int entry_type);
static bool invalidate_entries(TALLOC_CTX *ctx,
struct sss_domain_info *dinfo,
- struct sysdb_ctx *sysdb,
enum sss_cache_entry entry_type,
const char *filter, const char *name);
static errno_t update_all_filters(struct cache_tool_ctx *tctx,
@@ -139,19 +138,19 @@ int main(int argc, const char *argv[])
goto done;
}
- skipped &= !invalidate_entries(tctx, dinfo, sysdb, TYPE_USER,
+ skipped &= !invalidate_entries(tctx, dinfo, TYPE_USER,
tctx->user_filter,
tctx->user_name);
- skipped &= !invalidate_entries(tctx, dinfo, sysdb, TYPE_GROUP,
+ skipped &= !invalidate_entries(tctx, dinfo, TYPE_GROUP,
tctx->group_filter,
tctx->group_name);
- skipped &= !invalidate_entries(tctx, dinfo, sysdb, TYPE_NETGROUP,
+ skipped &= !invalidate_entries(tctx, dinfo, TYPE_NETGROUP,
tctx->netgroup_filter,
tctx->netgroup_name);
- skipped &= !invalidate_entries(tctx, dinfo, sysdb, TYPE_SERVICE,
+ skipped &= !invalidate_entries(tctx, dinfo, TYPE_SERVICE,
tctx->service_filter,
tctx->service_name);
- skipped &= !invalidate_entries(tctx, dinfo, sysdb, TYPE_AUTOFSMAP,
+ skipped &= !invalidate_entries(tctx, dinfo, TYPE_AUTOFSMAP,
tctx->autofs_filter,
tctx->autofs_name);
@@ -337,7 +336,6 @@ static errno_t update_all_filters(struct cache_tool_ctx *tctx,
static bool invalidate_entries(TALLOC_CTX *ctx,
struct sss_domain_info *dinfo,
- struct sysdb_ctx *sysdb,
enum sss_cache_entry entry_type,
const char *filter, const char *name)
{
@@ -374,8 +372,7 @@ static bool invalidate_entries(TALLOC_CTX *ctx,
break;
case TYPE_AUTOFSMAP:
type_string = "autofs map";
- ret = search_autofsmaps(ctx, sysdb, dinfo,
- filter, attrs, &msg_count, &msgs);
+ ret = search_autofsmaps(ctx, dinfo, filter, attrs, &msg_count, &msgs);
break;
}
@@ -695,7 +692,7 @@ fini:
}
static errno_t
-search_autofsmaps(TALLOC_CTX *mem_ctx, struct sysdb_ctx *sysdb,
+search_autofsmaps(TALLOC_CTX *mem_ctx,
struct sss_domain_info *domain,
const char *sub_filter, const char **attrs,
size_t *msgs_count, struct ldb_message ***msgs)