summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
Diffstat (limited to 'graphics')
-rw-r--r--graphics/grads/files/patch-src_gabufr.c10
-rw-r--r--graphics/grads/files/patch-src_gxX.c48
-rw-r--r--graphics/grads/files/patch-src_gxtran.c20
3 files changed, 78 insertions, 0 deletions
diff --git a/graphics/grads/files/patch-src_gabufr.c b/graphics/grads/files/patch-src_gabufr.c
new file mode 100644
index 000000000000..a9573a7d52f7
--- /dev/null
+++ b/graphics/grads/files/patch-src_gabufr.c
@@ -0,0 +1,10 @@
+--- src/gabufr.c.orig 2014-05-24 07:48:38.000000000 -0700
++++ src/gabufr.c 2014-05-24 07:49:10.000000000 -0700
+@@ -129,6 +129,7 @@
+ }
+
+ /* prints a full description of a varid, expanding sequence contents*/
++void
+ gabufr_print_varid (gabufr_varid *varid, int indent) {
+ gabufr_varid * seq_varid;
+ gabufr_varinf * varinf;
diff --git a/graphics/grads/files/patch-src_gxX.c b/graphics/grads/files/patch-src_gxX.c
new file mode 100644
index 000000000000..f0c168319f74
--- /dev/null
+++ b/graphics/grads/files/patch-src_gxX.c
@@ -0,0 +1,48 @@
+--- src/gxX.c.orig 2014-05-24 15:32:45.000000000 -0700
++++ src/gxX.c 2014-05-24 15:43:22.000000000 -0700
+@@ -701,7 +701,7 @@
+ XStandardColormap best;
+ int screen_num = DefaultScreen(display);
+
+- if (clr<16 || clr>99) return;
++ if (clr<16 || clr>99) return 1;
+ if (cused[clr]) {
+ XFreeColors(display, cmap, &(cvals[clr]),1,0);
+ cused[clr]=0;
+@@ -864,6 +864,7 @@
+ return;
+ }
+
++void
+ dump_back_buffer(filename) /* hoop */
+ char *filename ; /* hoop */
+ { /* hoop */
+@@ -883,6 +884,7 @@
+ } /* hoop */
+ } /* hoop */
+
++void
+ dump_front_buffer(filename) /* hoop */
+ char *filename ; /* hoop */
+ { /* hoop */
+@@ -2296,17 +2298,17 @@
+ pch = (char *)malloc(512);
+ if (pch==NULL) {
+ printf ("Memory Allocation Error: Dialog Box\n");
+- return;
++ return '\0';
+ }
+ tch = (char *)malloc(512);
+ if (tch==NULL) {
+ printf ("Memory Allocation Error: Dialog Box\n");
+- return;
++ return '\0';
+ }
+ rch = (char *)malloc(512);
+ if (rch==NULL) {
+ printf ("Memory Allocation Error: Dialog Box\n");
+- return;
++ return '\0';
+ }
+ plen = 0;
+ rlen = 0;
diff --git a/graphics/grads/files/patch-src_gxtran.c b/graphics/grads/files/patch-src_gxtran.c
new file mode 100644
index 000000000000..88ea4c5c37f3
--- /dev/null
+++ b/graphics/grads/files/patch-src_gxtran.c
@@ -0,0 +1,20 @@
+--- src/gxtran.c.orig 2014-05-24 15:45:07.000000000 -0700
++++ src/gxtran.c 2014-05-24 15:46:08.000000000 -0700
+@@ -97,7 +97,7 @@
+ infile = fopen(ifi,"rb");
+ if (infile == NULL) {
+ printf ("Cannot open input file: %s\n",ifi);
+- return;
++ return 1;
+ }
+
+ pnt = 0;
+@@ -257,7 +257,7 @@
+
+ else {
+ printf ("Invalid command found %i \n",cmd);
+- return;
++ return 1;
+ }
+ }
+ }