summaryrefslogtreecommitdiffstats
path: root/src/db
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2016-06-29 16:18:12 +0200
committerJakub Hrozek <jhrozek@redhat.com>2016-07-07 10:29:49 +0200
commitebbeac5c6b8b87ab478ee5a04ec48fbbba0c9efc (patch)
tree4c75590786d32320f848ecddac530cb86951b3c6 /src/db
parentbae42db17f223e9ba7fa239d899414877d9d8eaf (diff)
downloadsssd-ebbeac5c6b8b87ab478ee5a04ec48fbbba0c9efc.tar.gz
sssd-ebbeac5c6b8b87ab478ee5a04ec48fbbba0c9efc.tar.xz
sssd-ebbeac5c6b8b87ab478ee5a04ec48fbbba0c9efc.zip
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 <sbose@redhat.com>
Diffstat (limited to 'src/db')
-rw-r--r--src/db/sysdb.h3
-rw-r--r--src/db/sysdb_init.c5
2 files changed, 3 insertions, 5 deletions
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,