summaryrefslogtreecommitdiff
path: root/libexec/ld.so/resolve.c
diff options
context:
space:
mode:
authorKurt Miller <kurt@cvs.openbsd.org>2005-10-09 04:29:14 +0000
committerKurt Miller <kurt@cvs.openbsd.org>2005-10-09 04:29:14 +0000
commita221e01b5326b6ac9e1b1b8ef17b8b189b37a794 (patch)
tree60e12291819cc34e1f5809f86b98de7b8a674ffb /libexec/ld.so/resolve.c
parente041d2112f4d7664e456d427cbf8cef9b4d65764 (diff)
introduce object ref count macros (suggested by dale). no functional
change.
Diffstat (limited to 'libexec/ld.so/resolve.c')
-rw-r--r--libexec/ld.so/resolve.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/ld.so/resolve.c b/libexec/ld.so/resolve.c
index 8c4511b95c4..b76df7997fa 100644
--- a/libexec/ld.so/resolve.c
+++ b/libexec/ld.so/resolve.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: resolve.c,v 1.41 2005/10/07 01:26:34 kurt Exp $ */
+/* $OpenBSD: resolve.c,v 1.42 2005/10/09 04:29:13 kurt Exp $ */
/*
* Copyright (c) 1998 Per Fogelstrom, Opsycon AB
@@ -191,7 +191,7 @@ _dl_cleanup_objects()
n = TAILQ_FIRST(&_dlopened_child_list);
while (n != NULL) {
next = TAILQ_NEXT(n, next_sib);
- if (n->data->opencount + n->data->grprefcount == 0) {
+ if (OBJECT_DLREF_CNT(n->data) == 0) {
TAILQ_REMOVE(&_dlopened_child_list, n, next_sib);
_dl_free(n);
}