diff options
Diffstat (limited to 'src/cidr.c')
-rw-r--r-- | src/cidr.c | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -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); |