diff --git a/libexec/rtld-elf/rtld.h b/libexec/rtld-elf/rtld.h index c145fa1bd7e6..21da9d9cde0f 100644 --- a/libexec/rtld-elf/rtld.h +++ b/libexec/rtld-elf/rtld.h @@ -194,7 +194,7 @@ unsigned long elf_hash(const char *); const Elf_Sym *find_symdef(unsigned long, const Obj_Entry *, const Obj_Entry **, bool, SymCache *); void init_pltgot(Obj_Entry *); -void lockdflt_init(); +void lockdflt_init(void); void obj_free(Obj_Entry *); Obj_Entry *obj_new(void); int reloc_non_plt(Obj_Entry *, Obj_Entry *); diff --git a/libexec/rtld-elf/rtld_lock.h b/libexec/rtld-elf/rtld_lock.h index 941b19e83bf7..cca4f18ed14f 100644 --- a/libexec/rtld-elf/rtld_lock.h +++ b/libexec/rtld-elf/rtld_lock.h @@ -33,14 +33,14 @@ struct RtldLockInfo { unsigned int rtli_version; - void *(*lock_create)(); + void *(*lock_create)(void); void (*lock_destroy)(void *); void (*rlock_acquire)(void *); void (*wlock_acquire)(void *); void (*lock_release)(void *); int (*thread_set_flag)(int); int (*thread_clr_flag)(int); - void (*at_fork)(); + void (*at_fork)(void); }; extern void _rtld_thread_init(struct RtldLockInfo *);