aboutsummaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2017-01-10 17:05:34 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2017-01-10 17:05:34 +0000
commite7bfd34bdf8fd0f38f652234801f6639692a7c64 (patch)
tree7b86afd25af50a5a898927307c3982c8b7403c7a /libexec
parente3ef7bb21608dd77fae2ac9790b12f3ea9ebe541 (diff)
downloadsrc-e7bfd34bdf8fd0f38f652234801f6639692a7c64.tar.gz
src-e7bfd34bdf8fd0f38f652234801f6639692a7c64.zip
Use ANSI C definitions, update comment.
Sponsored by: The FreeBSD Foundation MFC after: 1 week
Notes
Notes: svn path=/head/; revision=311879
Diffstat (limited to 'libexec')
-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 f31546c4ac91..eeaea5e578b0 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;