From 4227d97f55fe6e47900ad8ceddbab693f83ef7c5 Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Sun, 23 Feb 2014 14:16:57 +0100 Subject: [PATCH] Fix send(2) calling sys_recv rather than sys_send. --- libc/sys/socket/send.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libc/sys/socket/send.cpp b/libc/sys/socket/send.cpp index c29c2be8..daabc9d1 100644 --- a/libc/sys/socket/send.cpp +++ b/libc/sys/socket/send.cpp @@ -25,7 +25,7 @@ #include #include -DEFN_SYSCALL4(ssize_t, sys_send, SYSCALL_RECV, int, const void*, size_t, int); +DEFN_SYSCALL4(ssize_t, sys_send, SYSCALL_SEND, int, const void*, size_t, int); extern "C" ssize_t send(int fd, const void* buf, size_t count, int flags) {