Fix build warning

This commit is contained in:
Aaron Culliney 2014-06-08 15:50:34 -07:00
parent 1b2a46dff4
commit 2def12c703

View File

@ -179,7 +179,7 @@ static void getshm(int size) {
/* attach to the shared memory segment */ /* attach to the shared memory segment */
image->data = xshminfo.shmaddr = shmat(id, 0, 0); image->data = xshminfo.shmaddr = shmat(id, 0, 0);
if ((int)(image->data) == -1) if ((size_t)(image->data) == -1)
{ {
perror("shmat"); perror("shmat");
printf("Could not attach to shared memory\n"); printf("Could not attach to shared memory\n");