Mercurial > mplayer.hg
changeset 6162:0e56fbf9039a
applied 64bit patch from Ulrich Hecht <uli at suse dot de>
author | alex |
---|---|
date | Thu, 23 May 2002 15:16:03 +0000 |
parents | c50ea0721e78 |
children | 141a082e6da6 |
files | linux/shmem.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/linux/shmem.c Thu May 23 14:53:11 2002 +0000 +++ b/linux/shmem.c Thu May 23 15:16:03 2002 +0000 @@ -66,7 +66,7 @@ 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;