svn commit: r355097 - head/graphics/grads/files

Greg Lewis glewis at FreeBSD.org
Sat May 24 22:51:02 UTC 2014


Author: glewis
Date: Sat May 24 22:51:01 2014
New Revision: 355097
URL: http://svnweb.freebsd.org/changeset/ports/355097
QAT: https://qat.redports.org/buildarchive/r355097/

Log:
  . Fix the build with clang.

Added:
  head/graphics/grads/files/patch-src_gabufr.c   (contents, props changed)
  head/graphics/grads/files/patch-src_gxX.c   (contents, props changed)
  head/graphics/grads/files/patch-src_gxtran.c   (contents, props changed)

Added: head/graphics/grads/files/patch-src_gabufr.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/grads/files/patch-src_gabufr.c	Sat May 24 22:51:01 2014	(r355097)
@@ -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;

Added: head/graphics/grads/files/patch-src_gxX.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/grads/files/patch-src_gxX.c	Sat May 24 22:51:01 2014	(r355097)
@@ -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;

Added: head/graphics/grads/files/patch-src_gxtran.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/grads/files/patch-src_gxtran.c	Sat May 24 22:51:01 2014	(r355097)
@@ -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;
+     }
+   }
+ }


More information about the svn-ports-all mailing list