diff options
author | alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-05-23 15:16:03 +0000 |
---|---|---|
committer | alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-05-23 15:16:03 +0000 |
commit | 38ea65626f19c3451090bb40f9ada9757b7519da (patch) | |
tree | ae2a11ef61f25faa415e1fc56a49783a644ba58a /linux | |
parent | 4a7a84962aea9876a19fdb9995178aa440853b47 (diff) | |
download | mpv-38ea65626f19c3451090bb40f9ada9757b7519da.tar.bz2 mpv-38ea65626f19c3451090bb40f9ada9757b7519da.tar.xz |
applied 64bit patch from Ulrich Hecht <uli at suse dot de>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6163 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'linux')
-rw-r--r-- | linux/shmem.c | 2 |
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; |