That's how the build fix should have looked alike :-)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11201 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
46300880d2
commit
12691b61c5
@ -22,9 +22,6 @@ extern char **argv_save;
|
||||
extern thread_id __main_thread_id;
|
||||
extern char **environ;
|
||||
|
||||
extern char **__libc_argv;
|
||||
extern int __libc_argc;
|
||||
|
||||
|
||||
/* The argument list is redundant, but that is for keeping BeOS compatibility.
|
||||
* BeOS doesn't have the last pointer, though.
|
||||
@ -39,7 +36,7 @@ _start(int argc, char **argv, char **_environ, struct uspace_program_args *args)
|
||||
__main_thread_id = find_thread(NULL);
|
||||
environ = args->envp;
|
||||
|
||||
returnCode = main(__libc_argc, __libc_argv);
|
||||
returnCode = main(args->argc, args->argv);
|
||||
|
||||
exit(returnCode);
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user