summaryrefslogtreecommitdiff
path: root/libc/misc/internals
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-02-17 12:06:32 +0000
committerMike Frysinger <vapier@gentoo.org>2006-02-17 12:06:32 +0000
commitdcec207b86c6fb223c1daf847bce4503881fb189 (patch)
tree4774a8c5107abd3a57b09b66e6bc438013991e90 /libc/misc/internals
parent05e5500c725660464eb10ac277b849d9ff68d97c (diff)
touchup whitespace
Diffstat (limited to 'libc/misc/internals')
-rw-r--r--libc/misc/internals/__uClibc_main.c21
1 files changed, 10 insertions, 11 deletions
diff --git a/libc/misc/internals/__uClibc_main.c b/libc/misc/internals/__uClibc_main.c
index 0531892c6..687585860 100644
--- a/libc/misc/internals/__uClibc_main.c
+++ b/libc/misc/internals/__uClibc_main.c
@@ -87,7 +87,7 @@ extern void weak_function __pthread_initialize_minimal(void);
#ifdef __UCLIBC_CTOR_DTOR__
extern void _dl_app_init_array(void);
extern void _dl_app_fini_array(void);
-#ifndef SHARED
+# ifndef SHARED
/* These magic symbols are provided by the linker. */
extern void (*__preinit_array_start []) (void) attribute_hidden;
extern void (*__preinit_array_end []) (void) attribute_hidden;
@@ -95,7 +95,7 @@ extern void (*__init_array_start []) (void) attribute_hidden;
extern void (*__init_array_end []) (void) attribute_hidden;
extern void (*__fini_array_start []) (void) attribute_hidden;
extern void (*__fini_array_end []) (void) attribute_hidden;
-#endif
+# endif
#endif
attribute_hidden const char *__uclibc_progname = NULL;
@@ -132,7 +132,6 @@ libc_hidden_data_def(__pagesize)
#endif
#ifdef __ARCH_HAS_MMU__
-
static void __check_one_fd(int fd, int mode)
{
/* Check if the specified fd is already open */
@@ -247,13 +246,13 @@ libc_hidden_proto(__uClibc_fini)
void __uClibc_fini(void)
{
#ifdef __UCLIBC_CTOR_DTOR__
-#ifdef SHARED
+# ifdef SHARED
_dl_app_fini_array();
-#else
+# else
size_t i = __fini_array_end - __fini_array_start;
while (i-- > 0)
(*__fini_array_start [i]) ();
-#endif
+# endif
if (__app_fini != NULL)
(__app_fini)();
#endif
@@ -347,7 +346,7 @@ void __uClibc_main(int (*main)(int, char **, char **), int argc,
/* Arrange for the application's dtors to run before we exit. */
__app_fini = app_fini;
-#ifndef SHARED
+# ifndef SHARED
/* For dynamically linked executables the preinit array is executed by
the dynamic linker (before initializing any shared object).
For static executables, preinit happens rights before init. */
@@ -357,21 +356,21 @@ void __uClibc_main(int (*main)(int, char **, char **), int argc,
for (i = 0; i < size; i++)
(*__preinit_array_start [i]) ();
}
-#endif
+# endif
/* Run all the application's ctors now. */
if (app_init!=NULL) {
app_init();
}
-#ifdef SHARED
+# ifdef SHARED
_dl_app_init_array();
-#else
+# else
{
const size_t size = __init_array_end - __init_array_start;
size_t i;
for (i = 0; i < size; i++)
(*__init_array_start [i]) ();
}
-#endif
+# endif
#endif
/* Note: It is possible that any initialization done above could