s4-ldb: use LDB_FLAG_MOD_TYPE() to extract element type from messages
authorAndrew Tridgell <tridge@samba.org>
Tue, 17 Aug 2010 01:21:11 +0000 (11:21 +1000)
committerAndrew Tridgell <tridge@samba.org>
Tue, 17 Aug 2010 11:21:50 +0000 (21:21 +1000)
commit6baa834ebe710d73cfd54e465479a2b2de9d2476
tree07e98dfeb43179fc25684f2e80580dc558c5717d
parent527042f78bc1672ca9a2f766b232165fb2a81d9f
s4-ldb: use LDB_FLAG_MOD_TYPE() to extract element type from messages

The flags field of message elements is part of a set of flags. We had
LDB_FLAG_MOD_MASK for extracting the type, but it was only rarely
being used (only 1 call used it correctly). This adds
LDB_FLAG_MOD_MASK() to make it more obvious what is going on.

This will allow us to use some of the other flags bits for internal
markers on elements

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
source4/dsdb/common/util.c
source4/dsdb/samdb/ldb_modules/acl.c
source4/dsdb/samdb/ldb_modules/extended_dn_store.c
source4/dsdb/samdb/ldb_modules/password_hash.c
source4/dsdb/samdb/ldb_modules/samldb.c
source4/lib/ldb/include/ldb.h
source4/lib/registry/ldb.c
source4/rpc_server/lsa/dcesrv_lsa.c