diff options
author | Rich Felker <dalias@aerifal.cx> | 2011-04-06 00:02:20 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2011-04-06 00:02:20 -0400 |
commit | 104d0134419eea7539cb5e0cc0405e5c6c9a0dff (patch) | |
tree | 8b952e069846b2308961cc28abcbdd5ddf174457 | |
parent | fc0cf2852d1c1254a0e6ab25018f02b325eadf43 (diff) | |
download | musl-104d0134419eea7539cb5e0cc0405e5c6c9a0dff.tar.gz musl-104d0134419eea7539cb5e0cc0405e5c6c9a0dff.tar.xz musl-104d0134419eea7539cb5e0cc0405e5c6c9a0dff.zip |
fix incorrect (and conflicting on LP64 archs) types for sysv ipc msgq functions
-rw-r--r-- | include/sys/msg.h | 2 | ||||
-rw-r--r-- | src/ipc/msgsnd.c | 2 |
2 files changed, 2 insertions, 2 deletions
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; |