summaryrefslogtreecommitdiffabout
path: root/src
authorSergey Poznyakoff <gray@gnu.org.ua>2016-02-23 09:16:22 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2016-02-23 09:16:22 (GMT)
commit8241dc04501f62b613f17f5c165f915a216ba30c (patch) (side-by-side diff)
treee4a453fc6f74103c01c165d170c4662e881786c6 /src
parent07838fb2e9ed5769074add028e052a3b667e67e7 (diff)
downloadgrecs-8241dc04501f62b613f17f5c165f915a216ba30c.tar.gz
grecs-8241dc04501f62b613f17f5c165f915a216ba30c.tar.bz2
Reword some diagnostics
Diffstat (limited to 'src') (more/less context) (ignore whitespace changes)
-rw-r--r--src/cidr.c11
-rw-r--r--src/wordsplit.c2
2 files changed, 7 insertions, 6 deletions
diff --git a/src/cidr.c b/src/cidr.c
index 6de7f36..f710e83 100644
--- a/src/cidr.c
+++ b/src/cidr.c
@@ -126,3 +126,4 @@ grecs_str_to_cidr(struct grecs_cidr *pcidr, const char *str,
if (len > sizeof(ipbuf)) {
- grecs_error(locus, 0, _("network length too big: %s"), str);
+ grecs_error(locus, 0, _("invalid network mask: %s"),
+ str);
return -1;
@@ -138,3 +139,3 @@ grecs_str_to_cidr(struct grecs_cidr *pcidr, const char *str,
else {
- grecs_error(locus, 0, _("unrecognized network family: %s"),
+ grecs_error(locus, 0, _("unrecognized address family: %s"),
str);
@@ -145,3 +146,3 @@ grecs_str_to_cidr(struct grecs_cidr *pcidr, const char *str,
if (rc == -1) {
- grecs_error(locus, 0, _("unrecognized network family: %s"),
+ grecs_error(locus, 0, _("unrecognized address family: %s"),
str);
@@ -149,3 +150,3 @@ grecs_str_to_cidr(struct grecs_cidr *pcidr, const char *str,
} else if (rc != 1) {
- grecs_error(locus, 0, _("invalid network: %s"),
+ grecs_error(locus, 0, _("invalid network address: %s"),
str);
@@ -156,3 +157,3 @@ grecs_str_to_cidr(struct grecs_cidr *pcidr, const char *str,
if (cidr.len == 0) {
- grecs_error(locus, 0, _("unrecognized network family: %s"),
+ grecs_error(locus, 0, _("unrecognized address family: %s"),
str);
diff --git a/src/wordsplit.c b/src/wordsplit.c
index 1045ca8..c9bd9cb 100644
--- a/src/wordsplit.c
+++ b/src/wordsplit.c
@@ -1085,3 +1085,3 @@ expvar (struct wordsplit *wsp, const char *str, size_t len,
else
- wsp->ws_error (_("%.*s: %.*s"),
+ wsp->ws_error ("%.*s: %.*s",
(int) i, str, (int) size, defstr);

Return to:

Send suggestions and report system problems to the System administrator.