1
mirror of https://github.com/mpv-player/mpv synced 2024-12-24 07:33:46 +01:00

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

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;