diff options
author | Kurt Miller <kurt@cvs.openbsd.org> | 2005-10-09 04:29:14 +0000 |
---|---|---|
committer | Kurt Miller <kurt@cvs.openbsd.org> | 2005-10-09 04:29:14 +0000 |
commit | a221e01b5326b6ac9e1b1b8ef17b8b189b37a794 (patch) | |
tree | 60e12291819cc34e1f5809f86b98de7b8a674ffb /libexec/ld.so/library_mquery.c | |
parent | e041d2112f4d7664e456d427cbf8cef9b4d65764 (diff) |
introduce object ref count macros (suggested by dale). no functional
change.
Diffstat (limited to 'libexec/ld.so/library_mquery.c')
-rw-r--r-- | libexec/ld.so/library_mquery.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/ld.so/library_mquery.c b/libexec/ld.so/library_mquery.c index a77ba47091c..b6bf72cf5de 100644 --- a/libexec/ld.so/library_mquery.c +++ b/libexec/ld.so/library_mquery.c @@ -1,4 +1,4 @@ -/* $OpenBSD: library_mquery.c,v 1.29 2005/10/06 21:53:10 kurt Exp $ */ +/* $OpenBSD: library_mquery.c,v 1.30 2005/10/09 04:29:13 kurt Exp $ */ /* * Copyright (c) 2002 Dale Rahn @@ -64,7 +64,7 @@ _dl_unload_shlib(elf_object_t *object) { struct dep_node *n; DL_DEB(("unload_shlib called on %s\n", object->load_name)); - if (object->refcount + object->opencount + object->grprefcount == 0 && + if (OBJECT_REF_CNT(object) == 0 && (object->status & STAT_UNLOADED) == 0) { object->status |= STAT_UNLOADED; TAILQ_FOREACH(n, &object->child_list, next_sib) |