summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/sys/msg.h2
-rw-r--r--src/ipc/msgsnd.c2
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;