summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2002-06-03 19:11:01 +0000
committerAndreas Gruenbacher <agruen@suse.de>2009-03-19 01:43:36 +0100
commitd9df031b6759d54eb12fbe2cfab329d3e21f2d70 (patch)
tree22cf4a90e7dc6948f29025e78e6414f593953280
parent5345332885d55aacb54b0de9497963d0f161c8c3 (diff)
downloadpatch-d9df031b6759d54eb12fbe2cfab329d3e21f2d70.tar.gz
(intuit_diff_type): Do not warn about trailing white space after Prereq: word.
-rw-r--r--pch.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/pch.c b/pch.c
index 9144c84..56d32e5 100644
--- a/pch.c
+++ b/pch.c
@@ -1,6 +1,6 @@
/* reading patches */
-/* $Id: pch.c,v 1.41 2002/05/28 18:51:23 eggert Exp $ */
+/* $Id: pch.c,v 1.42 2002/06/03 17:11:01 eggert Exp $ */
/* Copyright (C) 1986, 1987, 1988 Larry Wall
@@ -369,9 +369,15 @@ intuit_diff_type (void)
for (t = revision; *t; t++)
if (ISSPACE ((unsigned char) *t))
{
- char numbuf[LINENUM_LENGTH_BOUND + 1];
- say ("Prereq: with multiple words at line %s of patch\n",
- format_linenum (numbuf, this_line));
+ char const *u;
+ for (u = t + 1; ISSPACE ((unsigned char) *u); u++)
+ continue;
+ if (*u)
+ {
+ char numbuf[LINENUM_LENGTH_BOUND + 1];
+ say ("Prereq: with multiple words at line %s of patch\n",
+ format_linenum (numbuf, this_line));
+ }
break;
}
if (t == revision)