summaryrefslogtreecommitdiff
blob: fbbe3d900664d16cebe9c8785e749c8e2e17c35f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
diff -Naur old/src/mixerctl.cc new/src/mixerctl.cc
--- old/src/mixerctl.cc	2004-09-04 02:44:12.797543753 +0200
+++ new/src/mixerctl.cc	2004-09-04 02:44:47.889365170 +0200
@@ -50,7 +50,7 @@
 
     if((fd = ::open(devname.c_str(), O_RDWR)) != -1) {
 	if(ioctl(fd, SOUND_MIXER_READ_DEVMASK, &devmask) != -1) {
-	    for(ct = ctVolume; ct != channeltype_end; (int) ct += 1) {
+	    for(ct = ctVolume; ct != channeltype_end; ct = (mixerctl::channeltype) (ct + 1)) {
 		if((1 << (int) ct) & devmask) {
 		    channels.insert(ct);
 		}
diff -Naur old/src/uitext.cc new/src/uitext.cc
--- old/src/uitext.cc	2004-09-04 03:36:50.928930920 +0200
+++ new/src/uitext.cc	2004-09-04 03:45:23.183056456 +0200
@@ -577,14 +577,16 @@
 			autosavepl = !autosavepl;
 			break;
 		    case 41:
-			if(++((int) playmode) == PlayMode_size)
+			playmode = (PlayMode) (playmode + 1);
+			if(playmode == PlayMode_size)
 			    playmode = Normal;
 			break;
 		    case 42:
 			autoplay = !autoplay;
 			break;
 		    case 43:
-			if(++((int) sortorder) == SortOrder_size)
+			sortorder = (SortOrder) (sortorder + 1);
+			if(sortorder == SortOrder_size)
 			    sortorder = byFileName;
 			break;
 		    case 44:
@@ -719,7 +721,7 @@
     while(!finished) {
 	m.clear();
 
-	for(ct = mixerctl::ctVolume; ct != mixerctl::channeltype_end; (int) ct += 1) {
+	for(ct = mixerctl::ctVolume; ct != mixerctl::channeltype_end; ct = (mixerctl::channeltype) (ct + 1)) {
 	    if(chavail.count(ct)) {
 		val = mix.readlevel(ct);
 		if(val >= 0) {