diff options
author | uqs <uqs@FreeBSD.org> | 2010-03-05 13:28:05 +0000 |
---|---|---|
committer | uqs <uqs@FreeBSD.org> | 2010-03-05 13:28:05 +0000 |
commit | b59a09ce7933da1dcf2be030f1a578a03364dd7a (patch) | |
tree | 1cf67b36dafa186824064443b20ee533818478da /lib/csu/amd64 | |
parent | 9b575d6cfa35359a26c022a0a266a114cda5a168 (diff) | |
download | FreeBSD-src-b59a09ce7933da1dcf2be030f1a578a03364dd7a.zip FreeBSD-src-b59a09ce7933da1dcf2be030f1a578a03364dd7a.tar.gz |
Properly declare non-extern functions in crt1
Also move the declarations after __progname consistently to
make the distinction clearer.
Reviewed by: jmallett
Approved by: ed (co-mentor)
Diffstat (limited to 'lib/csu/amd64')
-rw-r--r-- | lib/csu/amd64/crt1.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/csu/amd64/crt1.c b/lib/csu/amd64/crt1.c index 943b07b..3bc4809 100644 --- a/lib/csu/amd64/crt1.c +++ b/lib/csu/amd64/crt1.c @@ -43,7 +43,6 @@ typedef void (*fptr)(void); extern void _fini(void); extern void _init(void); extern int main(int, char **, char **); -extern void _start(char **, void (*)(void)); #ifdef GCRT extern void _mcleanup(void); @@ -55,6 +54,8 @@ extern int etext; char **environ; const char *__progname = ""; +void _start(char **, void (*)(void)); + /* The entry function. */ void _start(char **ap, void (*cleanup)(void)) |