SOURCES: powersoftplus-types.patch (NEW) - types fix (void* can be...

qboosh qboosh at pld-linux.org
Fri Feb 8 20:25:08 CET 2008


Author: qboosh                       Date: Fri Feb  8 19:25:08 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- types fix (void* can be larger than int)

---- Files affected:
SOURCES:
   powersoftplus-types.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/powersoftplus-types.patch
diff -u /dev/null SOURCES/powersoftplus-types.patch:1.1
--- /dev/null	Fri Feb  8 20:25:08 2008
+++ SOURCES/powersoftplus-types.patch	Fri Feb  8 20:25:03 2008
@@ -0,0 +1,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
================================================================


More information about the pld-cvs-commit mailing list