summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2010-05-25 17:50:04 +0200
committerJim Meyering <meyering@redhat.com>2010-05-26 07:27:48 +0200
commit26818d74472e0d727c33f7a8346b48f372e76acf (patch)
treebc00b3575862568daa54f2595c6512ac0271ca41 /src
parent80eab7f9725cce44f147e1332ee8d63a8628e17f (diff)
downloadgrep-26818d74472e0d727c33f7a8346b48f372e76acf.tar.gz
maint: don't emit an extra newline in each of two diagnostics
* src/main.c (context_length_arg, grepdir): Remove a stray \n in each of two diagnostics.
Diffstat (limited to 'src')
-rw-r--r--src/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 4c7c0e33..20168bb4 100644
--- a/src/main.c
+++ b/src/main.c
@@ -408,7 +408,7 @@ context_length_arg (char const *str, int *out)
&& 0 <= (*out = value)
&& *out == value))
{
- error (EXIT_TROUBLE, 0, "%s: %s\n", str,
+ error (EXIT_TROUBLE, 0, "%s: %s", str,
_("invalid context length argument"));
}
}
@@ -1321,7 +1321,7 @@ grepdir (char const *dir, struct stats const *stats)
&& ancestor->stat.st_dev == stats->stat.st_dev)
{
if (!suppress_errors)
- error (0, 0, _("warning: %s: %s\n"), dir,
+ error (0, 0, _("warning: %s: %s"), dir,
_("recursive directory loop"));
return 1;
}