From ebbeac5c6b8b87ab478ee5a04ec48fbbba0c9efc Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Wed, 29 Jun 2016 16:18:12 +0200 Subject: SYSDB: Remove useless parameter from sysdb_init() The function sysdb_init() is never used to allow upgrade, so the allow_upgrade parameter was pointless. Reviewed-by: Sumit Bose --- src/db/sysdb.h | 3 +-- src/db/sysdb_init.c | 5 ++--- 2 files changed, 3 insertions(+), 5 deletions(-) (limited to 'src/db') diff --git a/src/db/sysdb.h b/src/db/sysdb.h index cdd37d17c..b881310bf 100644 --- a/src/db/sysdb.h +++ b/src/db/sysdb.h @@ -613,8 +613,7 @@ uint64_t sss_view_ldb_msg_find_attr_as_uint64(struct sss_domain_info *dom, * call this function *only* once to initialize the database and get * the sysdb ctx */ int sysdb_init(TALLOC_CTX *mem_ctx, - struct sss_domain_info *domains, - bool allow_upgrade); + struct sss_domain_info *domains); /* Same as sysdb_init, but additionally allows to change * file ownership of the sysdb databases. */ diff --git a/src/db/sysdb_init.c b/src/db/sysdb_init.c index c6e9c4ac1..7298c2b18 100644 --- a/src/db/sysdb_init.c +++ b/src/db/sysdb_init.c @@ -840,10 +840,9 @@ done: } int sysdb_init(TALLOC_CTX *mem_ctx, - struct sss_domain_info *domains, - bool allow_upgrade) + struct sss_domain_info *domains) { - return sysdb_init_ext(mem_ctx, domains, allow_upgrade, false, 0, 0); + return sysdb_init_ext(mem_ctx, domains, false, false, 0, 0); } int sysdb_init_ext(TALLOC_CTX *mem_ctx, -- cgit