summaryrefslogtreecommitdiffstats
path: root/libexec/rtld-elf
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2017-01-17 10:32:27 +0000
committerkib <kib@FreeBSD.org>2017-01-17 10:32:27 +0000
commita83af9e97a395aa00a3bbda568014f9704de8d56 (patch)
tree242239d743bec232bcef9f12d83ad126fcd151e3 /libexec/rtld-elf
parent9bec18d159e699d08c651e11a002f32803179ce6 (diff)
downloadFreeBSD-src-a83af9e97a395aa00a3bbda568014f9704de8d56.zip
FreeBSD-src-a83af9e97a395aa00a3bbda568014f9704de8d56.tar.gz
MFC r311879:
Use ANSI C definitions, update comment.
Diffstat (limited to 'libexec/rtld-elf')
-rw-r--r--libexec/rtld-elf/rtld_lock.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libexec/rtld-elf/rtld_lock.c b/libexec/rtld-elf/rtld_lock.c
index f31546c..eeaea5e 100644
--- a/libexec/rtld-elf/rtld_lock.c
+++ b/libexec/rtld-elf/rtld_lock.c
@@ -38,8 +38,8 @@
* In this algorithm the lock is a single word. Its low-order bit is
* set when a writer holds the lock. The remaining high-order bits
* contain a count of readers desiring the lock. The algorithm requires
- * atomic "compare_and_store" and "add" operations, which we implement
- * using assembly language sequences in "rtld_start.S".
+ * atomic "compare_and_store" and "add" operations, which we take
+ * from machine/atomic.h.
*/
#include <sys/param.h>
@@ -67,7 +67,7 @@ static sigset_t fullsigmask, oldsigmask;
static int thread_flag;
static void *
-def_lock_create()
+def_lock_create(void)
{
void *base;
char *p;
@@ -269,7 +269,7 @@ lock_restart_for_upgrade(RtldLockState *lockstate)
}
void
-lockdflt_init()
+lockdflt_init(void)
{
int i;
OpenPOWER on IntegriCloud