Skip to contentSkip to conversation

Syscalls recv and recvfrom fix

PATCH In review Kirill A. Shutemov 1 participant 2 messages Feb 28, 2007 – Mar 7, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Syscalls recv and recvfrom fix

Argument name typo fixed. Patch in the attachment.

qemu/linux-user/syscall.c +2 -2
index f3f97b0..80684de 100644
@@ -2912,12 +2912,12 @@ long do_syscall(void *cpu_env, int num, long arg1, long arg2, long arg3,
 #endif
 #ifdef TARGET_NR_recv
     case TARGET_NR_recv:
-        ret = do_recvfrom(arg1, arg1, arg3, arg4, 0, 0);
+        ret = do_recvfrom(arg1, arg2, arg3, arg4, 0, 0);
         break;
 #endif
 #ifdef TARGET_NR_recvfrom
     case TARGET_NR_recvfrom:
-        ret = do_recvfrom(arg1, arg1, arg3, arg4, arg5, arg6);
+        ret = do_recvfrom(arg1, arg2, arg3, arg4, arg5, arg6);
         break;
 #endif
 #ifdef TARGET_NR_recvmsg
#1 lore raw
Quoted 1 line · Kirill A. Shutemov

Argument name typo fixed. Patch in the attachment.

Trivial typo, please commit it.