Fix compilation warnings

This commit is contained in:
Pali Rohár committed 2012-06-23 17:39:33 +02:00
1 parent 58c0dbe275
commit 027a6d9a18
6 files changed
+15 -9

No files matched your search

+1 -1
View File
@@ -89,7 +89,7 @@ _retry:
}
pool = shmat(shmid, NULL, 0);
if (((int)pool) == -1) {
if (pool == (void *)-1) {
perror("shmat");
return NULL;
}