diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-02-09 17:18:51 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-02-09 17:18:51 +0100 |
commit | 7a402da97eb12fbcae3ad86171562623ba52a116 (patch) | |
tree | c586ead9f299f6e673c64fdb899e37d24c446b14 /source4/lib | |
parent | b5bfabf1526f094942f986f8c8f7019b64db6c2f (diff) | |
download | samba-7a402da97eb12fbcae3ad86171562623ba52a116.tar.gz samba-7a402da97eb12fbcae3ad86171562623ba52a116.tar.bz2 samba-7a402da97eb12fbcae3ad86171562623ba52a116.zip |
registry: Fix warning.
(This used to be commit dad809030478a85ac13a73bce9c07314792f01c2)
Diffstat (limited to 'source4/lib')
-rw-r--r-- | source4/lib/registry/ldb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/registry/ldb.c b/source4/lib/registry/ldb.c index 262859f64b..0c8a55396e 100644 --- a/source4/lib/registry/ldb.c +++ b/source4/lib/registry/ldb.c @@ -400,7 +400,7 @@ static WERROR ldb_add_key(TALLOC_CTX *mem_ctx, const struct hive_key *parent, struct security_descriptor *sd, struct hive_key **newkey) { - struct ldb_key_data *parentkd = (const struct ldb_key_data *)parent; + struct ldb_key_data *parentkd = discard_const_p(struct ldb_key_data, parent); struct ldb_message *msg; struct ldb_key_data *newkd; int ret; |