diff options
author | dzwdz | 2022-07-16 22:50:34 +0200 |
---|---|---|
committer | dzwdz | 2022-07-16 22:50:34 +0200 |
commit | a251c14f1a745f3388ce73a5a45ebc73cd1782b5 (patch) | |
tree | 2eab140ce2bcc729d8836e97a61bd0d731bb44d6 /src/user/lib/syscall.c.awk | |
parent | c8ed6aa7476b7f506366d9fe56ed6f2e7a12b40d (diff) |
amd64: back at the shell!
Diffstat (limited to 'src/user/lib/syscall.c.awk')
-rw-r--r-- | src/user/lib/syscall.c.awk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/user/lib/syscall.c.awk b/src/user/lib/syscall.c.awk index a8dd22b..91e4665 100644 --- a/src/user/lib/syscall.c.awk +++ b/src/user/lib/syscall.c.awk @@ -31,7 +31,7 @@ BEGIN { if (length(words) != 1) { var = words[length(words)]; sub(/\*/, "", var); - if (words[1] != "int") var = "(int)" var; + if (words[1] != "long") var = "(long)" var; } p[i] = var; } else { @@ -42,7 +42,7 @@ BEGIN { printf "\t"; if (!index($0, "_Noreturn")) { printf "return "; - if (rets != "int") printf "(%s)", rets; + if (rets != "long") printf "(%s)", rets; } printf "_syscall(%s, %s, %s, %s, %s);\n", toupper(name), p[1], p[2], p[3], p[4]; if (index($0, "_Noreturn")) print "\t__builtin_unreachable();"; |