summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-02-06 12:41:57 +1100
committerJeremy Allison <jra@samba.org>2010-02-10 15:42:00 -0800
commitaa52a0925d4c07117cc6eb62c6e80eda24f8cc40 (patch)
tree6f70cd22bb8e0aaf224ed006f01d1167e3acf947 /source3
parentf592d42047d0b5d7ea115b9cd44a55ee443b64f7 (diff)
downloadsamba-aa52a0925d4c07117cc6eb62c6e80eda24f8cc40.tar.gz
samba-aa52a0925d4c07117cc6eb62c6e80eda24f8cc40.tar.bz2
samba-aa52a0925d4c07117cc6eb62c6e80eda24f8cc40.zip
s3-registry: update to use new DLIST macros
(cherry picked from commit 3437713ad7e5bccafde30553a8232119fd2a9eb9)
Diffstat (limited to 'source3')
-rw-r--r--source3/registry/regfio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/registry/regfio.c b/source3/registry/regfio.c
index 5d9734b15e..c3873a894b 100644
--- a/source3/registry/regfio.c
+++ b/source3/registry/regfio.c
@@ -1815,8 +1815,8 @@ static int hashrec_cmp( REGF_HASH_REC *h1, REGF_HASH_REC *h2 )
if this is the first record, then just set the next and prev
offsets to ourself. */
- if ( nk->sec_desc->prev ) {
- REGF_SK_REC *prev = nk->sec_desc->prev;
+ if ( DLIST_PREV(nk->sec_desc) ) {
+ REGF_SK_REC *prev = DLIST_PREV(nk->sec_desc);
nk->sec_desc->prev_sk_off = prev->hbin_off + prev->hbin->first_hbin_off - HBIN_HDR_SIZE;
prev->next_sk_off = nk->sec_desc->sk_off;