From: Rich Felker Date: Wed, 6 Apr 2011 04:02:20 +0000 (-0400) Subject: fix incorrect (and conflicting on LP64 archs) types for sysv ipc msgq functions X-Git-Tag: v0.7.7~5 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=104d0134419eea7539cb5e0cc0405e5c6c9a0dff;p=oweals%2Fmusl.git fix incorrect (and conflicting on LP64 archs) types for sysv ipc msgq functions --- diff --git a/include/sys/msg.h b/include/sys/msg.h index 9fc42bcd..92bd5a00 100644 --- a/include/sys/msg.h +++ b/include/sys/msg.h @@ -30,7 +30,7 @@ struct msqid_ds int msgctl (int, int, struct msqid_ds *); int msgget (key_t, int); -int msgrcv (int, void *, size_t, long, int); +ssize_t msgrcv (int, void *, size_t, long, int); int msgsnd (int, const void *, size_t, int); #endif diff --git a/src/ipc/msgsnd.c b/src/ipc/msgsnd.c index ed05d6b3..26057f2e 100644 --- a/src/ipc/msgsnd.c +++ b/src/ipc/msgsnd.c @@ -3,7 +3,7 @@ #include "ipc.h" #include "libc.h" -ssize_t msgsnd(int q, const void *m, size_t len, int flag) +int msgsnd(int q, const void *m, size_t len, int flag) { ssize_t r; CANCELPT_BEGIN;