summaryrefslogtreecommitdiff
path: root/lib/csu
diff options
context:
space:
mode:
authorVisa Hankala <visa@cvs.openbsd.org>2019-01-09 16:42:39 +0000
committerVisa Hankala <visa@cvs.openbsd.org>2019-01-09 16:42:39 +0000
commit669d64c0ed5ec23ee5b2af6a1f7289579b237e56 (patch)
tree9a80bf2cc432fd35fe497a4ff72da144774681f9 /lib/csu
parent81badc8ecdc79b7f9a86a0d42ff7c50b076667ff (diff)
Use static consistently with definitions of functions that have been
declared static. OK guenther@
Diffstat (limited to 'lib/csu')
-rw-r--r--lib/csu/crt0.c4
-rw-r--r--lib/csu/crtbegin.c6
-rw-r--r--lib/csu/crtbeginS.c6
3 files changed, 8 insertions, 8 deletions
diff --git a/lib/csu/crt0.c b/lib/csu/crt0.c
index 0ffccaf312c..7e380626797 100644
--- a/lib/csu/crt0.c
+++ b/lib/csu/crt0.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: crt0.c,v 1.11 2018/12/21 05:45:42 guenther Exp $ */
+/* $OpenBSD: crt0.c,v 1.12 2019/01/09 16:42:38 visa Exp $ */
/*
* Copyright (c) 1995 Christopher G. Demetriou
@@ -72,7 +72,7 @@ extern __dso_hidden initarray_f __preinit_array_start[],
extern char __csu_do_fini_array __dso_hidden;
-void
+static void
___start(MD_START_ARGS)
{
size_t size, i;
diff --git a/lib/csu/crtbegin.c b/lib/csu/crtbegin.c
index 8290150592b..5890fdccda3 100644
--- a/lib/csu/crtbegin.c
+++ b/lib/csu/crtbegin.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: crtbegin.c,v 1.25 2018/12/21 05:45:42 guenther Exp $ */
+/* $OpenBSD: crtbegin.c,v 1.26 2019/01/09 16:42:38 visa Exp $ */
/* $NetBSD: crtbegin.c,v 1.1 1996/09/12 16:59:03 cgd Exp $ */
/*
@@ -123,7 +123,7 @@ MD_SECT_CALL_FUNC(".init", __do_init);
MD_SECT_CALL_FUNC(".fini", __do_fini);
-void
+static void
__do_init(void)
{
static int initialized;
@@ -148,7 +148,7 @@ __do_init(void)
char __csu_do_fini_array __dso_hidden = 0;
extern __dso_hidden init_f __fini_array_start[], __fini_array_end[];
-void
+static void
__do_fini(void)
{
static int finalized;
diff --git a/lib/csu/crtbeginS.c b/lib/csu/crtbeginS.c
index dba5965e878..a4a7cd19fce 100644
--- a/lib/csu/crtbeginS.c
+++ b/lib/csu/crtbeginS.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: crtbeginS.c,v 1.19 2017/02/19 21:39:32 guenther Exp $ */
+/* $OpenBSD: crtbeginS.c,v 1.20 2019/01/09 16:42:38 visa Exp $ */
/* $NetBSD: crtbegin.c,v 1.1 1996/09/12 16:59:03 cgd Exp $ */
/*
@@ -134,7 +134,7 @@ MD_SECT_CALL_FUNC(".init", _do_init);
MD_SECT_CALL_FUNC(".fini", _do_fini);
-void
+static void
_do_init(void)
{
static int initialized;
@@ -152,7 +152,7 @@ _do_init(void)
}
}
-void
+static void
_do_fini(void)
{
static int finalized;