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
This commit is contained in:
alex 2002-05-23 15:16:03 +00:00
parent 4a7a84962a
commit 38ea65626f
1 changed files with 1 additions and 1 deletions

View File

@ -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;