summaryrefslogtreecommitdiff
path: root/math/oleo/files/patch-src_io-term.c
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2008-02-08 23:40:56 +0000
committerMartin Wilke <miwi@FreeBSD.org>2008-02-08 23:40:56 +0000
commit9bbd56d5ed8dc61c966b38fb5112a2fd7eb20f36 (patch)
tree73799368e290cf8ec1800d402bbcc7e444b79b1d /math/oleo/files/patch-src_io-term.c
parent- Update to 2.4.8 (diff)
- Fix build with gcc 4.2
- Pass maintainership to submitter PR: 120415 Submitted by: "Pietro Cerutti" <gahr@gahr.ch>
Diffstat (limited to 'math/oleo/files/patch-src_io-term.c')
-rw-r--r--math/oleo/files/patch-src_io-term.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/math/oleo/files/patch-src_io-term.c b/math/oleo/files/patch-src_io-term.c
new file mode 100644
index 000000000000..16f7beff3e03
--- /dev/null
+++ b/math/oleo/files/patch-src_io-term.c
@@ -0,0 +1,25 @@
+--- src/io-term.c.orig 2008-02-08 16:43:28.000000000 +0100
++++ src/io-term.c 2008-02-08 16:45:06.000000000 +0100
+@@ -220,6 +220,7 @@
+ {
+ int set_opt = 1;
+ int i, l;
++ int *tmp;
+ char *p;
+
+ while (*ptr == ' ')
+@@ -234,9 +235,11 @@
+
+ if (Preferences[i].copynext) {
+ ptr += strlen(Preferences[i].name) + 1;
+- ((char *)Preferences[i].var) = strdup(ptr);
+- } else if (Preferences[i].var)
+- *((int *)Preferences[i].var) = Preferences[i].value;
++ Preferences[i].var = strdup(ptr);
++ } else if (Preferences[i].var) {
++ tmp = Preferences[i].var;
++ *tmp = Preferences[i].value;
++ }
+
+ if (Preferences[i].cont == 0)
+ return 1;