diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2017-01-23 13:00:10 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2017-01-23 13:00:10 +0000 |
commit | 64bee4d549cf6cbbc36a748d226371585dcce822 (patch) | |
tree | 2e3e240a98f286030834f13908bbcd171b0604f1 /libexec/ld.so | |
parent | 478f7ac4b7f14731f2866ed94aaa69d43d9aa5c1 (diff) |
Mark a bunch of stuff static
ok kettenis@
Diffstat (limited to 'libexec/ld.so')
-rw-r--r-- | libexec/ld.so/dl_printf.c | 4 | ||||
-rw-r--r-- | libexec/ld.so/dlfcn.c | 8 | ||||
-rw-r--r-- | libexec/ld.so/resolve.c | 5 |
3 files changed, 9 insertions, 8 deletions
diff --git a/libexec/ld.so/dl_printf.c b/libexec/ld.so/dl_printf.c index 6f14abd2277..425974753f8 100644 --- a/libexec/ld.so/dl_printf.c +++ b/libexec/ld.so/dl_printf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dl_printf.c,v 1.17 2012/12/05 23:20:06 deraadt Exp $ */ +/* $OpenBSD: dl_printf.c,v 1.18 2017/01/23 13:00:09 guenther Exp $ */ /*- * Copyright (c) 1993 @@ -59,7 +59,7 @@ #include "syscall.h" #include "util.h" -int lastfd = -1; +static int lastfd = -1; #define OUTBUFSIZE 128 static char outbuf[OUTBUFSIZE]; static char *outptr = outbuf; diff --git a/libexec/ld.so/dlfcn.c b/libexec/ld.so/dlfcn.c index 68a48a73e27..508c2f16f4e 100644 --- a/libexec/ld.so/dlfcn.c +++ b/libexec/ld.so/dlfcn.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dlfcn.c,v 1.95 2016/03/21 01:52:45 guenther Exp $ */ +/* $OpenBSD: dlfcn.c,v 1.96 2017/01/23 13:00:09 guenther Exp $ */ /* * Copyright (c) 1998 Per Fogelstrom, Opsycon AB @@ -40,10 +40,10 @@ #include "sod.h" int _dl_errno; -int _dl_tracelib; +static int _dl_tracelib; -int _dl_real_close(void *handle); -void (*_dl_thread_fnc)(int) = NULL; +static int _dl_real_close(void *handle); +static void (*_dl_thread_fnc)(int) = NULL; static elf_object_t *obj_from_addr(const void *addr); void * diff --git a/libexec/ld.so/resolve.c b/libexec/ld.so/resolve.c index e2e2267efe2..d2179414fa3 100644 --- a/libexec/ld.so/resolve.c +++ b/libexec/ld.so/resolve.c @@ -1,4 +1,4 @@ -/* $OpenBSD: resolve.c,v 1.76 2017/01/22 01:20:36 guenther Exp $ */ +/* $OpenBSD: resolve.c,v 1.77 2017/01/23 13:00:09 guenther Exp $ */ /* * Copyright (c) 1998 Per Fogelstrom, Opsycon AB @@ -404,7 +404,7 @@ _dl_tailq_free(struct dep_node *n) } } -elf_object_t *free_objects; +static elf_object_t *free_objects; void _dl_cleanup_objects() @@ -758,3 +758,4 @@ _dl_debug_state(void) { /* Debugger stub */ } +DEF(_dl_debug_state); |