File WSoundPrefs-1.1.1-warnings.patch of Package wsndpref

--- src/SoundEvents.c
+++ src/SoundEvents.c
@@ -321,7 +321,7 @@
 			newset = WMCreatePLDictionary(NULL,NULL,NULL);
 			key = NULL;
 			
-			for(i=0;eventkey[i]!="UserDefined";i++) {
+			for(i=0;strcmp(eventkey[i],"UserDefined");i++) {
 				key = WMCreatePLString(eventkey[i]);
 				val = WMGetFromPLDictionary(WMSoundDomain,key);
 				if(val) WMPutInPLDictionary(newset,key,val);
@@ -374,7 +374,7 @@
 		val = WMGetFromPLArray(array, i);
 		path = wexpandpath(WMGetFromPLString(val));
 		
-		if ((path+strlen(path)-1) != "/")
+		if (*(path+strlen(path)-1) != '/')
 			path = wstrappend(path, "/");
 		path = wstrappend(path, file);
 		
@@ -433,7 +433,7 @@
 		val = WMGetFromPLArray(array, i);
 		path = wexpandpath(WMGetFromPLString(val));
 		
-		if ((path+strlen(path)-1) != "/") {
+		if (*(path+strlen(path)-1) != '/') {
 			tmp = wstrappend(path, "/");
 #if 0
 			if (path)