blob: 579bdf127fab6f509e746e3d9876502370358d7a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--- powersoftplus-0.1.8/src/cshmem.cpp.orig 2006-08-27 00:00:00.000000000 +0200
+++ powersoftplus-0.1.8/src/cshmem.cpp 2008-02-07 18:16:19.707778298 +0100
@@ -82,7 +82,7 @@
} else {
isid=true;
segptr=(char*)shmat(shm_id, NULL, 0);
- if((int)segptr==-1) {
+ if(segptr==(char*)-1) {
//error_report("Shared memory segment couldn't be attached! (%s)\n",strerror(errno));
return SHM_FAILURE;
} else
@@ -122,7 +122,7 @@
} else {
isid=isopened=true;
segptr=(char*)shmat(shm_id, NULL, 0);
- if((int)segptr==-1) {
+ if(segptr==(char*)-1) {
error_report("Shared memory segment couldn't be attached! (%s)\n",strerror(errno));
return SHM_FAILURE;
} else
|