diff options
author | Cedric Berger <cedric@cvs.openbsd.org> | 2003-01-14 10:42:33 +0000 |
---|---|---|
committer | Cedric Berger <cedric@cvs.openbsd.org> | 2003-01-14 10:42:33 +0000 |
commit | 25c9e779d3fc17d1be38b8a5d622c16a2639b34c (patch) | |
tree | f556a3d05defa0ab04b1359b6d92926b53959d0d /sbin/pfctl/pfctl_table.c | |
parent | 1c90014f1d62e19e7b78788b617cb8f37635170b (diff) |
A bit of consistency in error messages. Before regress commit :)
Diffstat (limited to 'sbin/pfctl/pfctl_table.c')
-rw-r--r-- | sbin/pfctl/pfctl_table.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/pfctl/pfctl_table.c b/sbin/pfctl/pfctl_table.c index 8d0077fa9e4..25fda8e2a68 100644 --- a/sbin/pfctl/pfctl_table.c +++ b/sbin/pfctl/pfctl_table.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pfctl_table.c,v 1.19 2003/01/11 21:54:43 henning Exp $ */ +/* $OpenBSD: pfctl_table.c,v 1.20 2003/01/14 10:42:32 cedric Exp $ */ /* * Copyright (c) 2002 Cedric Berger @@ -488,7 +488,7 @@ append_addr(char *s, int test) switch (ai->ai_family) { case AF_INET: if (net > 32) - errx(1, "invalid netmask %d", net); + errx(1, "illegal netmask: \"%d\"", net); if (size >= msize) grow_buffer(sizeof(struct pfr_addr), 0); buffer.addrs[size].pfra_ip4addr = @@ -500,7 +500,7 @@ append_addr(char *s, int test) break; case AF_INET6: if (net > 128) - errx(1, "invalid netmask %d", net); + errx(1, "illegal netmask: \"%d\"", net); if (size >= msize) grow_buffer(sizeof(struct pfr_addr), 0); buffer.addrs[size].pfra_ip6addr = |