aboutsummaryrefslogtreecommitdiff
path: root/ft_write.s
diff options
context:
space:
mode:
Diffstat (limited to 'ft_write.s')
-rw-r--r--ft_write.s10
1 files changed, 5 insertions, 5 deletions
diff --git a/ft_write.s b/ft_write.s
index 01ba580..0d723f7 100644
--- a/ft_write.s
+++ b/ft_write.s
@@ -27,15 +27,15 @@ global M_FT_WRITE
section .text
; int ft_write(int rdi, const void *rsi, size_t rdx);
M_FT_WRITE:
- mov rax, M_SYSCALL_WRITE
- syscall
+ mov rax, M_SYSCALL_WRITE
+ syscall
%ifdef __LINUX__
cmp rax, 0
jl FT_WRITE_ERROR
%else
jc FT_WRITE_ERROR
%endif
- ret
+ ret
FT_WRITE_ERROR:
%ifdef __LINUX__
neg rax
@@ -43,5 +43,5 @@ FT_WRITE_ERROR:
push rax
call M_ERRNO_LOCATION wrt ..plt
pop qword [rax]
- mov rax, -1
- ret
+ mov rax, -1
+ ret