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/dlfcn.c | |
parent | e041d2112f4d7664e456d427cbf8cef9b4d65764 (diff) |
introduce object ref count macros (suggested by dale). no functional
change.
Diffstat (limited to 'libexec/ld.so/dlfcn.c')
-rw-r--r-- | libexec/ld.so/dlfcn.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/ld.so/dlfcn.c b/libexec/ld.so/dlfcn.c index 03fbfda44f2..e363e9a7d44 100644 --- a/libexec/ld.so/dlfcn.c +++ b/libexec/ld.so/dlfcn.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dlfcn.c,v 1.65 2005/10/07 01:26:33 kurt Exp $ */ +/* $OpenBSD: dlfcn.c,v 1.66 2005/10/09 04:29:13 kurt Exp $ */ /* * Copyright (c) 1998 Per Fogelstrom, Opsycon AB @@ -71,7 +71,7 @@ dlopen(const char *libname, int flags) _dl_link_dlopen(object); - if (object->refcount + object->opencount + object->grprefcount > 1) + if (OBJECT_REF_CNT(object) > 1) goto loaded; /* this add_object should not be here, XXX */ |