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