aboutsummaryrefslogtreecommitdiff
path: root/ft_write.s
diff options
context:
space:
mode:
Diffstat (limited to 'ft_write.s')
-rw-r--r--ft_write.s6
1 files changed, 3 insertions, 3 deletions
diff --git a/ft_write.s b/ft_write.s
index 62616c5..0761329 100644
--- a/ft_write.s
+++ b/ft_write.s
@@ -10,14 +10,14 @@
; ;
; **************************************************************************** ;
-global _ft_write
+global ft_write
%define F_GETFD 1
%define SYSCALL_WRITE 0x2000004
%define SYSCALL_FCNTL 0x200005c
; int ft_write(int rdi, const void *rsi, size_t rdx);
-_ft_write:
+ft_write:
cmp rdx, 0
je FT_WRITE_NO_SIZE
cmp rdi, 0
@@ -29,7 +29,7 @@ _ft_write:
push rsi
xor rsi, rsi
mov esi, F_GETFD
- mov rax, SYSCALL_FCNTL
+ mov rax, SYSCALL_FCNTL
syscall
pop rsi
pop rdx