mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-28 05:29:48 +00:00
Fix build with clang.
This commit is contained in:
parent
490a9407b8
commit
2ea0692bf5
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=320846
27
textproc/rot/files/patch-rot.c
Normal file
27
textproc/rot/files/patch-rot.c
Normal file
@ -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++;
|
Loading…
Reference in New Issue
Block a user