diff options
author | markm <markm@FreeBSD.org> | 2002-07-03 14:42:39 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 2002-07-03 14:42:39 +0000 |
commit | 38e70a1e486f7a9a5bf6477bc77624436eaa69d1 (patch) | |
tree | 6521c615b99170bbfa6794a3f6e54c7f981335c9 /lib/csu/i386-elf | |
parent | 110c2de07c405176de37d5a49c2173d05a37ae84 (diff) | |
download | FreeBSD-src-38e70a1e486f7a9a5bf6477bc77624436eaa69d1.zip FreeBSD-src-38e70a1e486f7a9a5bf6477bc77624436eaa69d1.tar.gz |
Whitespace diffs only; this brings this file into the same whitespace
convention as src/lib/csu/*/crt1.c.
This will make the follow up diffs easier to see and extract.
Diffstat (limited to 'lib/csu/i386-elf')
-rw-r--r-- | lib/csu/i386-elf/crt1.c | 53 |
1 files changed, 27 insertions, 26 deletions
diff --git a/lib/csu/i386-elf/crt1.c b/lib/csu/i386-elf/crt1.c index 5dcd90e..5df6e11 100644 --- a/lib/csu/i386-elf/crt1.c +++ b/lib/csu/i386-elf/crt1.c @@ -29,6 +29,7 @@ #include <stddef.h> #include <stdlib.h> + #include "libc_private.h" #include "crtbrand.c" @@ -50,9 +51,9 @@ extern int _DYNAMIC; #ifdef __i386__ #define get_rtld_cleanup() \ - ({ fptr __value; \ - __asm__("movl %%edx,%0" : "=rm"(__value)); \ - __value; }) + ({ fptr __value; \ + __asm__("movl %%edx,%0" : "=rm"(__value)); \ + __value; }) #else #error "This file only supports the i386 architecture" #endif @@ -63,36 +64,36 @@ const char *__progname = ""; void _start(char *arguments, ...) { - fptr rtld_cleanup; - int argc; - char **argv; - char **env; - const char *s; + fptr rtld_cleanup; + int argc; + char **argv; + char **env; + const char *s; - rtld_cleanup = get_rtld_cleanup(); - argv = &arguments; - argc = * (int *) (argv - 1); - env = argv + argc + 1; - environ = env; - if (argc > 0 && argv[0] != NULL) { - __progname = argv[0]; - for (s = __progname; *s != '\0'; s++) - if (*s == '/') - __progname = s + 1; - } + rtld_cleanup = get_rtld_cleanup(); + argv = &arguments; + argc = * (int *) (argv - 1); + env = argv + argc + 1; + environ = env; + if (argc > 0 && argv[0] != NULL) { + __progname = argv[0]; + for (s = __progname; *s != '\0'; s++) + if (*s == '/') + __progname = s + 1; + } - if (&_DYNAMIC != NULL) - atexit(rtld_cleanup); + if (&_DYNAMIC != NULL) + atexit(rtld_cleanup); #ifdef GCRT - atexit(_mcleanup); + atexit(_mcleanup); #endif - atexit(_fini); + atexit(_fini); #ifdef GCRT - monstartup(&eprol, &etext); + monstartup(&eprol, &etext); #endif - _init(); - exit( main(argc, argv, env) ); + _init(); + exit( main(argc, argv, env) ); } #ifdef GCRT |