diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2010-11-15 14:58:17 -0500 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2010-11-15 15:52:10 -0500 |
commit | 5e4ea20cf1e31ce4fee5cbfa92ea120901a5bd1e (patch) | |
tree | 89b2d6cbd4d75ecbd294662e3e71f072610a0545 /src/confdb | |
parent | f8a60e728780a8230ed4fa9c5350fa94534f0543 (diff) | |
download | sssd-5e4ea20cf1e31ce4fee5cbfa92ea120901a5bd1e.tar.gz sssd-5e4ea20cf1e31ce4fee5cbfa92ea120901a5bd1e.tar.bz2 sssd-5e4ea20cf1e31ce4fee5cbfa92ea120901a5bd1e.zip |
Fix const cast warning in confdb_create_ldif
Diffstat (limited to 'src/confdb')
-rw-r--r-- | src/confdb/confdb_setup.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/confdb/confdb_setup.c b/src/confdb/confdb_setup.c index f98a6977..6c68461f 100644 --- a/src/confdb/confdb_setup.c +++ b/src/confdb/confdb_setup.c @@ -128,7 +128,7 @@ int confdb_create_base(struct confdb_ctx *cdb) static int confdb_create_ldif(TALLOC_CTX *mem_ctx, struct collection_item *sssd_config, - char **config_ldif) + const char **config_ldif) { int ret, i, j; char *ldif; @@ -260,7 +260,7 @@ static int confdb_create_ldif(TALLOC_CTX *mem_ctx, free_section_list(sections); - *config_ldif = ldif; + *config_ldif = (const char *)ldif; talloc_free(tmp_ctx); return EOK; @@ -276,7 +276,7 @@ int confdb_init_db(const char *config_file, struct confdb_ctx *cdb) struct collection_item *sssd_config = NULL; struct collection_item *error_list = NULL; struct collection_item *item = NULL; - char *config_ldif; + const char *config_ldif; struct ldb_ldif *ldif; TALLOC_CTX *tmp_ctx; char *lasttimestr, timestr[21]; @@ -395,7 +395,7 @@ int confdb_init_db(const char *config_file, struct confdb_ctx *cdb) DEBUG(7, ("LDIF file to import: \n%s", config_ldif)); - while ((ldif = ldb_ldif_read_string(cdb->ldb, (const char **)&config_ldif))) { + while ((ldif = ldb_ldif_read_string(cdb->ldb, &config_ldif))) { ret = ldb_add(cdb->ldb, ldif->msg); if (ret != LDB_SUCCESS) { DEBUG(0, ("Failed to initialize DB (%d,[%s]), aborting!\n", |