Remove magic constant in syscall

This commit is contained in:
Nikolay Korolev 2020-01-20 16:42:45 +03:00 committed by GitHub
parent e6a1422dd9
commit 8cec84c2e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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);