summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Ambach <ambi@samba.org>2013-05-27 13:33:24 +0200
committerMichael Adam <obnox@samba.org>2013-06-21 10:44:18 +0200
commite211b5c5d248756eb48a60ac05144a346e111a5e (patch)
treea6bf88f78f42fa1b38fac01b51023008a5215446
parente17bc56cafb6a6338b5edda20f53161c0af63a5c (diff)
downloadsamba-e211b5c5d248756eb48a60ac05144a346e111a5e.tar.gz
samba-e211b5c5d248756eb48a60ac05144a346e111a5e.tar.bz2
samba-e211b5c5d248756eb48a60ac05144a346e111a5e.zip
s3:passdb/samba_dsdb fix a compiler warning
about discarding const modifier Signed-off-by: Christian Ambach <ambi@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
-rw-r--r--source3/passdb/pdb_samba_dsdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/passdb/pdb_samba_dsdb.c b/source3/passdb/pdb_samba_dsdb.c
index 0ff2e0a6bd..0ff603765d 100644
--- a/source3/passdb/pdb_samba_dsdb.c
+++ b/source3/passdb/pdb_samba_dsdb.c
@@ -2065,7 +2065,7 @@ static bool pdb_samba_dsdb_sid_to_id(struct pdb_methods *m, const struct dom_sid
}
ZERO_STRUCT(id_map);
- id_map.sid = sid;
+ id_map.sid = discard_const_p(struct dom_sid, sid);
id_maps[0] = &id_map;
id_maps[1] = NULL;