summaryrefslogtreecommitdiff
path: root/src/user/lib
diff options
context:
space:
mode:
authorAlex AUVOLAT <alexis211@gmail.com>2012-05-18 15:15:57 +0200
committerAlex AUVOLAT <alexis211@gmail.com>2012-05-18 15:15:57 +0200
commitdaa6c2450fa0646619698f0dc01b0456b2541317 (patch)
tree1065acdd5e1f2c0febafa345e4a36c9a35dbb100 /src/user/lib
parent7d5a38ada35ac196919c26675f211adb995b84ae (diff)
downloadTCE-daa6c2450fa0646619698f0dc01b0456b2541317.tar.gz
TCE-daa6c2450fa0646619698f0dc01b0456b2541317.zip
Added process arguments when loaded as modules.
Diffstat (limited to 'src/user/lib')
-rw-r--r--src/user/lib/start.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/user/lib/start.c b/src/user/lib/start.c
index 3dbb994..2521f97 100644
--- a/src/user/lib/start.c
+++ b/src/user/lib/start.c
@@ -1,8 +1,8 @@
#include <tce/syscall.h>
-extern int main();
+extern int main(char **args);
-void start() {
- int ret = main();
+void start(char **args) {
+ int ret = main(args);
process_exit(ret);
}