r19132: Fix some C++ warnings. Is there interest to have them in Samba4 as well?
commita62e295edc27a1737cf6a76f262062684fe3c9c2
authorVolker Lendecke <vlendec@samba.org>
Fri, 6 Oct 2006 14:39:47 +0000 (6 14:39 +0000)
committerVolker Lendecke <vlendec@samba.org>
Fri, 6 Oct 2006 14:39:47 +0000 (6 14:39 +0000)
tree60853867fdc88043dba201cc4ab15d6246f7bfbe
parent5200c6079f465122a048f6e7d1541c4c78dcbbb0
r19132: Fix some C++ warnings. Is there interest to have them in Samba4 as well?

I have some problems resolving the last 3 ones in attrib_handlers.c. In line
251 the function ldb_dn_explode_casefold is called with mem_ctx as the first
argument. Looking at ldb_dn_explode_casefold I see that the first argument it
expects is a struct ldb_context. I could certainly add a cast to (struct
ldb_context *) to that call, but I would assume that this is the wrong fix. Is
it possible that attrib_handlers.c:251 and :254 should have ldb and not
mem_ctx as the first argument?

Can anybody from Samba4 clarify this for me and apply the correct fix?

Thanks a lot.

Volker
source/lib/ldb/common/ldb.c
source/lib/ldb/common/ldb_dn.c
source/lib/ldb/common/ldb_ldif.c
source/lib/ldb/common/ldb_modules.c
source/lib/ldb/common/ldb_msg.c
source/lib/ldb/common/ldb_parse.c