summaryrefslogtreecommitdiff
path: root/src/mq
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-06-25 09:23:36 -0400
committerRich Felker <dalias@aerifal.cx>2011-06-25 09:23:36 -0400
commit4d95a58524d277ce51a5d27d964f0628f6e23841 (patch)
treeff4d1d023c34e99a538dcebd145e8dc729cfc306 /src/mq
parent568b8075a4406ca8cb1f718e74fd0829cb7f0b90 (diff)
downloadmusl-4d95a58524d277ce51a5d27d964f0628f6e23841.tar.gz
musl-4d95a58524d277ce51a5d27d964f0628f6e23841.tar.bz2
musl-4d95a58524d277ce51a5d27d964f0628f6e23841.tar.xz
musl-4d95a58524d277ce51a5d27d964f0628f6e23841.zip
const correctness in mq_notify
why did gcc allow this invalid assignment to compile in the first place?
Diffstat (limited to 'src/mq')
-rw-r--r--src/mq/mq_notify.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mq/mq_notify.c b/src/mq/mq_notify.c
index 60bb2db2..3f8661eb 100644
--- a/src/mq/mq_notify.c
+++ b/src/mq/mq_notify.c
@@ -61,7 +61,7 @@ int mq_notify(mqd_t mqd, const struct sigevent *sev)
sev2.sigev_notify = SIGEV_THREAD;
sev2.sigev_signo = s;
- sev2.sigev_value.sival_ptr = &zeros;
+ sev2.sigev_value.sival_ptr = (void *)&zeros;
if (syscall(SYS_mq_notify, mqd, &sev2) < 0) {
pthread_cancel(td);