summaryrefslogtreecommitdiff
path: root/textproc/agrep/files/patch-mgrep.c
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2017-01-21 17:01:49 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2017-01-21 17:01:49 +0000
commitb288a6c6e15cb57c91b38db12fe033564281cba0 (patch)
treeaeb4c1eacf636e5386d2349f504d0c48bb70bb4c /textproc/agrep/files/patch-mgrep.c
parentUpdate to patchlevel 209. (diff)
- make portlint happier
Notes
Notes: svn path=/head/; revision=432061
Diffstat (limited to 'textproc/agrep/files/patch-mgrep.c')
-rw-r--r--textproc/agrep/files/patch-mgrep.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/textproc/agrep/files/patch-mgrep.c b/textproc/agrep/files/patch-mgrep.c
index 367e33ac8474..57aba592defe 100644
--- a/textproc/agrep/files/patch-mgrep.c
+++ b/textproc/agrep/files/patch-mgrep.c
@@ -1,5 +1,5 @@
---- mgrep.c.orig 1992-04-11 00:12:27.000000000 +0200
-+++ mgrep.c 2011-11-27 13:42:10.000000000 +0100
+--- mgrep.c.orig 1992-04-10 22:12:27 UTC
++++ mgrep.c
@@ -1,7 +1,10 @@
/* Copyright (c) 1991 Sun Wu and Udi Manber. All Rights Reserved. */
/* multipattern matcher */
@@ -32,7 +32,7 @@
int LONG = 0;
int SHORT = 0;
-@@ -37,7 +45,7 @@
+@@ -37,7 +45,7 @@ unsigned char *patt[max_num];
unsigned char pat_len[max_num];
@@ -41,7 +41,7 @@
int fp;
{
int length=0, i, p=1, pdx=0, num_pat;
-@@ -85,7 +93,7 @@
+@@ -85,7 +93,7 @@ int fp;
if(p!=0 && p < p_size) p_size = p;
}
if(p_size == 0) {
@@ -50,7 +50,7 @@
exit(2);
}
if(length > 400 && p_size > 2) LONG = 1;
-@@ -98,7 +106,7 @@
+@@ -98,7 +106,7 @@ int fp;
}
@@ -59,7 +59,7 @@
int fd;
{
register char r_newline = '\n';
-@@ -136,7 +144,7 @@
+@@ -136,7 +144,7 @@ int fd;
return;
} /* end mgrep */
@@ -68,7 +68,7 @@
unsigned char *text; int len;
{
int i;
-@@ -144,7 +152,7 @@
+@@ -144,7 +152,7 @@ int i;
}
@@ -77,7 +77,7 @@
int start, end; register unsigned char *text;
{
register unsigned char *textend;
-@@ -232,7 +240,7 @@
+@@ -232,7 +240,7 @@ while (text <= textend) {
if(INVERSE && !COUNT) while(lastout <= textend) putchar(*lastout++);
}
@@ -86,7 +86,7 @@
int start, end; register unsigned char *text;
{
register unsigned char *textend;
-@@ -292,7 +300,7 @@
+@@ -292,7 +300,7 @@ while (++text <= textend) {
if(INVERSE && !COUNT) while(lastout <= textend) putchar(*lastout++);
}