updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / motor / void-compile.patch
blobdd148d9d9eadb6bbadfdc310b215bb986b20abf6
1 diff -Naur motor-3.4.0.orig/kkconsui/src/texteditor.cc motor-3.4.0.new/kkconsui/src/texteditor.cc
2 --- motor-3.4.0.orig/kkconsui/src/texteditor.cc 2003-09-09 17:51:33.000000000 -0400
3 +++ motor-3.4.0.new/kkconsui/src/texteditor.cc 2007-06-29 15:55:13.000000000 -0400
4 @@ -1940,7 +1940,7 @@
7 int texteditor::findint(void *p1, void *p2) {
8 - return *(int *) p1 != (int) p2;
9 + return *(int *) p1 != *(int *) p2;
12 int texteditor::findhighline(void *p1, void *p2) {
13 diff -Naur motor-3.4.0.orig/kkstrtext/kkstrtext.cc motor-3.4.0.new/kkstrtext/kkstrtext.cc
14 --- motor-3.4.0.orig/kkstrtext/kkstrtext.cc 2005-01-31 19:13:24.000000000 -0500
15 +++ motor-3.4.0.new/kkstrtext/kkstrtext.cc 2007-06-29 15:53:39.000000000 -0400
16 @@ -431,7 +431,7 @@
19 int intcompare(void *s1, void *s2) {
20 - return (int) s1 != (int) s2;
21 + return *(int *) s1 != *(int *) s2;
24 string i2str(int i) {
25 diff -Naur motor-3.4.0.orig/src/ui/ncurses/ncursesui.cc motor-3.4.0.new/src/ui/ncurses/ncursesui.cc
26 --- motor-3.4.0.orig/src/ui/ncurses/ncursesui.cc 2004-11-14 16:04:08.000000000 -0500
27 +++ motor-3.4.0.new/src/ui/ncurses/ncursesui.cc 2007-06-29 15:57:40.000000000 -0400
28 @@ -1242,7 +1242,7 @@
29 populatesettingstree(*db.gettree());
30 if(fin = !db.open(n, b, &p)) break;
32 - switch((int) p) {
33 + switch(*(int *) p) {
34 case 10:
35 if(input(motorui::text, buf = project.getversion(),
36 _("version: ")) == motorui::yes) {
37 @@ -1368,7 +1368,7 @@
38 id = tree.getid(i);
40 if(tree.isnode(id))
41 - if(sid = (int) tree.getref(id))
42 + if(sid = *(int *) tree.getref(id))
43 if(!tree.isnodeopen(id))
44 cnodes.push_back(treeshit[sid-1].second->gettagname());
46 diff -Naur motor-3.4.0.orig/src/ui/ncurses/uitagbrowser.cc motor-3.4.0.new/src/ui/ncurses/uitagbrowser.cc
47 --- motor-3.4.0.orig/src/ui/ncurses/uitagbrowser.cc 2004-07-22 20:18:16.000000000 -0400
48 +++ motor-3.4.0.new/src/ui/ncurses/uitagbrowser.cc 2007-06-29 15:59:42.000000000 -0400
49 @@ -95,7 +95,7 @@
50 cm.close();
52 if(n) {
53 - int c = (int) cm.getref(n-1);
54 + int c = *(int *) cm.getref(n-1);
56 if(c != tagbrowser.getscope()) {
57 tagbrowser.setscope((motortagbrowser::viewscope) c);
58 @@ -142,7 +142,7 @@
59 switch(cm.open()) {
60 case -2:
61 iter = false;
62 - c = (char) (int) cm.getref(cm.getpos());
63 + c = (char) *(int *) cm.getref(cm.getpos());
65 while((pos = nfilter.find(c)) != -1) {
66 nfilter.erase(pos, 1);
67 @@ -240,7 +240,7 @@
68 m.setpos(mpos);
70 if(r = (n = m.open())) {
71 - k = (int) m.getref(n-1);
72 + k = *(int *) m.getref(n-1);
73 mpos = n-1;
76 diff -Naur motor-3.4.0.orig/src/ui/ncurses/uivcs.cc motor-3.4.0.new/src/ui/ncurses/uivcs.cc
77 --- motor-3.4.0.orig/src/ui/ncurses/uivcs.cc 2005-02-12 09:58:28.000000000 -0500
78 +++ motor-3.4.0.new/src/ui/ncurses/uivcs.cc 2007-06-29 16:00:41.000000000 -0400
79 @@ -98,7 +98,7 @@
80 switch(b) {
81 case 0:
82 if(!i) {
83 - i = (int) tree.getref(tree.getid(n));
84 + i = *(int *) tree.getref(tree.getid(n));
85 ic = ch.begin()+i-1;
87 found = (ik = find(naffect.begin(), naffect.end(),