svn commit: r320846 - head/textproc/rot/files

Guido Falsi madpilot at FreeBSD.org
Thu Jun 13 22:45:38 UTC 2013


Author: madpilot
Date: Thu Jun 13 22:45:37 2013
New Revision: 320846
URL: http://svnweb.freebsd.org/changeset/ports/320846

Log:
  Fix build with clang.

Added:
  head/textproc/rot/files/
  head/textproc/rot/files/patch-rot.c   (contents, props changed)

Added: head/textproc/rot/files/patch-rot.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/textproc/rot/files/patch-rot.c	Thu Jun 13 22:45:37 2013	(r320846)
@@ -0,0 +1,27 @@
+--- rot.c.orig	1989-03-05 02:11:02.000000000 +0100
++++ rot.c	2013-06-14 00:36:58.068387596 +0200
+@@ -244,10 +244,10 @@
+       if (i2 >= 0L)
+       {
+          if (seekinput (sum + z + col, 1) == -1)
+-            return;
++            return 0;
+ 
+          if ((c = getinput()) == EOF)
+-            return;                  /* end of input */
++            return 0;                  /* end of input */
+ 
+          if (c == ' ' && !bflag)
+             holdbl++;
+@@ -292,9 +292,9 @@
+       if (i2 > 0L)
+       {
+          if (seekinput (- (sum + z + 2L), 1) == -1)
+-            return;
++            return 0;
+          if ((c = getinput()) == EOF)
+-            return;                  /* end of input */
++            return 0;                  /* end of input */
+ 
+          if (c == ' ' && !bflag)
+             holdbl++;


More information about the svn-ports-all mailing list