summaryrefslogtreecommitdiff
path: root/05/test.c
diff options
context:
space:
mode:
Diffstat (limited to '05/test.c')
-rw-r--r--05/test.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/05/test.c b/05/test.c
index b287d99..70c80b0 100644
--- a/05/test.c
+++ b/05/test.c
@@ -1,6 +1,5 @@
-// calling assembly functions from C is not working for some reason.
extern unsigned long __syscall(int, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long);
-int main(unsigned long (*_syscall)(int, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long)) {
+int main(void) {
__syscall(1, 1, (unsigned long)"Hello, world!\n", 14, 0, 0, 0);
return 42;
}