From 8cec84c2e489a9261638eabd128210b8736c8869 Mon Sep 17 00:00:00 2001 From: Nikolay Korolev Date: Mon, 20 Jan 2020 16:42:45 +0300 Subject: [PATCH] Remove magic constant in syscall --- hello.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hello.c b/hello.c index 9ac6dc5..b049502 100644 --- a/hello.c +++ b/hello.c @@ -39,7 +39,7 @@ const char message[] = int main() { //write(1, message, sizeof(message) - 1); - syscall(SYS_write, 1, message, sizeof(message) - 1); + syscall(SYS_write, STDOUT_FILENO, message, sizeof(message) - 1); //_exit(0); //syscall(SYS_exit, 0);