summaryrefslogtreecommitdiff
path: root/source3/modules
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-02-06 12:41:39 +1100
committerJeremy Allison <jra@samba.org>2010-02-10 15:41:22 -0800
commitf592d42047d0b5d7ea115b9cd44a55ee443b64f7 (patch)
tree110b410b1ee69c00753e2d49e378467e850ef911 /source3/modules
parent4689826e391eb83ac639b9afdae641a6e3f34b9a (diff)
downloadsamba-f592d42047d0b5d7ea115b9cd44a55ee443b64f7.tar.gz
samba-f592d42047d0b5d7ea115b9cd44a55ee443b64f7.tar.bz2
samba-f592d42047d0b5d7ea115b9cd44a55ee443b64f7.zip
s3-perfcount: update to use new DLIST macros
(cherry picked from commit a13b507f2d8be7f90c8872094cd0732926a6fcbb)
Diffstat (limited to 'source3/modules')
-rw-r--r--source3/modules/perfcount_onefs.c2
-rw-r--r--source3/modules/perfcount_test.c3
2 files changed, 2 insertions, 3 deletions
diff --git a/source3/modules/perfcount_onefs.c b/source3/modules/perfcount_onefs.c
index 066a7f1fe4..75dc14555c 100644
--- a/source3/modules/perfcount_onefs.c
+++ b/source3/modules/perfcount_onefs.c
@@ -335,7 +335,7 @@ static void onefs_smb_statistics_end(struct smb_perfcount_data *pcd)
onefs_stat_debug(&tmp->iod), uid,
tmp->iod.in_bytes, tmp->iod.out_bytes));
#endif
- SAFE_FREE(tmp->prev);
+ SAFE_FREE(DLIST_PREV(tmp));
}
isc_cookie_init(&ctxt->iod.cookie, rem_addr, loc_addr, uid);
diff --git a/source3/modules/perfcount_test.c b/source3/modules/perfcount_test.c
index b72ac9f7b5..f9ea817127 100644
--- a/source3/modules/perfcount_test.c
+++ b/source3/modules/perfcount_test.c
@@ -179,8 +179,7 @@ static void perfcount_test_dump_counters(void)
for (i=0; i < 256; i++) {
for (head = g_list[i]; head != NULL; head = head->next) {
perfcount_test_dump_counter(head, 0);
- head->prev = NULL;
- SAFE_FREE(head->prev);
+ SAFE_FREE(DLIST_PREV(head));
}
SAFE_FREE(head);
}