summaryrefslogtreecommitdiffstats
path: root/linux/shmem.c
diff options
context:
space:
mode:
Diffstat (limited to 'linux/shmem.c')
-rw-r--r--linux/shmem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/shmem.c b/linux/shmem.c
index 6cb1eab0d3..9fd6047b54 100644
--- a/linux/shmem.c
+++ b/linux/shmem.c
@@ -66,7 +66,7 @@ while(1){
struct shmid_ds shmemds;
int shmemid;
if ((shmemid = shmget(IPC_PRIVATE, size, IPC_CREAT | 0600)) == -1) break;
- if ((int)(p = shmat(shmemid, 0, 0)) == -1){
+ if ((p = shmat(shmemid, 0, 0)) == (void *)-1){
mp_msg(MSGT_OSDEP, MSGL_ERR, "shmem: shmat() failed: %s\n", strerror(errno));
shmctl (shmemid, IPC_RMID, &shmemds);
break;