diff options
author | 2017-01-23 13:00:09 +0000 | |
---|---|---|
committer | 2017-01-23 13:00:09 +0000 | |
commit | bfc907354fdbde7c3c77c230f450a54adbe649c9 (patch) | |
tree | 199c5d2cdc897444cf46bfb1161abe222dbc0ff7 | |
parent | The functionality of _dl_allocate_tib() is used internally, so rename (diff) | |
download | wireguard-openbsd-bfc907354fdbde7c3c77c230f450a54adbe649c9.tar.xz wireguard-openbsd-bfc907354fdbde7c3c77c230f450a54adbe649c9.zip |
Mark a bunch of stuff static
ok kettenis@
-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); |