aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/link_elf_obj.c
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2002-09-28 17:15:38 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2002-09-28 17:15:38 +0000
commit37c841831ff323187d7f749947244f7e278a14ea (patch)
tree072f805928e7e540a4d2c0a3a7ec37f7529204a0 /sys/kern/link_elf_obj.c
parent069f4a68411de58c26e4d4080d0396134968830a (diff)
downloadsrc-37c841831ff323187d7f749947244f7e278a14ea.tar.gz
src-37c841831ff323187d7f749947244f7e278a14ea.zip
Be consistent about "static" functions: if the function is marked
static in its prototype, mark it static at the definition too. Inspired by: FlexeLint warning #512
Notes
Notes: svn path=/head/; revision=104094
Diffstat (limited to 'sys/kern/link_elf_obj.c')
-rw-r--r--sys/kern/link_elf_obj.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/link_elf_obj.c b/sys/kern/link_elf_obj.c
index ea4f0dd2d772..83fbe17af215 100644
--- a/sys/kern/link_elf_obj.c
+++ b/sys/kern/link_elf_obj.c
@@ -154,7 +154,7 @@ struct r_debug r_debug;
/*
* Function for the debugger to set a breakpoint on to gain control.
*/
-void
+static void
r_debug_state(struct r_debug *dummy_one __unused,
struct link_map *dummy_two __unused)
{
@@ -975,7 +975,7 @@ elf_hash(const char *name)
return h;
}
-int
+static int
link_elf_lookup_symbol(linker_file_t lf, const char* name, c_linker_sym_t* sym)
{
elf_file_t ef = (elf_file_t) lf;