summaryrefslogtreecommitdiff
path: root/usr/src/common/ctf/ctf_open.c
diff options
context:
space:
mode:
authorRobert Mustacchi <rm@joyent.com>2012-11-21 22:05:21 +0000
committerRobert Mustacchi <rm@joyent.com>2012-11-21 22:05:21 +0000
commitc9b5e96c15bb6567575976b216ad5ab119519ec6 (patch)
tree59c94ec5430e59c6d984135f6ce52912986ed04e /usr/src/common/ctf/ctf_open.c
parent66bbd2b9c817e75f72b055981eb23eaee4f74846 (diff)
downloadillumos-joyent-c9b5e96c15bb6567575976b216ad5ab119519ec6.tar.gz
OS-1474 Want ::typedef (backout, breaks dtrace)
Diffstat (limited to 'usr/src/common/ctf/ctf_open.c')
-rw-r--r--usr/src/common/ctf/ctf_open.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/usr/src/common/ctf/ctf_open.c b/usr/src/common/ctf/ctf_open.c
index 2148389fff..e49a4cb329 100644
--- a/usr/src/common/ctf/ctf_open.c
+++ b/usr/src/common/ctf/ctf_open.c
@@ -24,9 +24,8 @@
* Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-/*
- * Copyright (c) 2012, Joyent, Inc. All rights reserved.
- */
+
+#pragma ident "%Z%%M% %I% %E% SMI"
#include <ctf_impl.h>
#include <sys/mman.h>
@@ -811,12 +810,8 @@ ctf_close(ctf_file_t *fp)
if (fp->ctf_parent != NULL)
ctf_close(fp->ctf_parent);
- /*
- * Note, to work properly with reference counting on the dynamic
- * section, we must delete the list in reverse.
- */
- for (dtd = ctf_list_prev(&fp->ctf_dtdefs); dtd != NULL; dtd = ntd) {
- ntd = ctf_list_prev(dtd);
+ for (dtd = ctf_list_next(&fp->ctf_dtdefs); dtd != NULL; dtd = ntd) {
+ ntd = ctf_list_next(dtd);
ctf_dtd_delete(fp, dtd);
}