diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-03-03 02:00:24 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-03-03 02:00:24 +0000 |
commit | e55756556ed8ecd36971116dd5b602a707785264 (patch) | |
tree | b529dd4a7682f7ca26932525331370bbe2771324 /sbin | |
parent | fe86680e742cb2f014578ec5802f190f842e2dc3 (diff) |
no newline in errx, bad cedric; spotted by tedu
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/pfctl/pfctl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/pfctl/pfctl.c b/sbin/pfctl/pfctl.c index aebbb2b7960..430a59a6b45 100644 --- a/sbin/pfctl/pfctl.c +++ b/sbin/pfctl/pfctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pfctl.c,v 1.210 2004/02/27 10:42:00 henning Exp $ */ +/* $OpenBSD: pfctl.c,v 1.211 2004/03/03 02:00:23 deraadt Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -375,7 +375,7 @@ pfctl_clear_states(int dev, const char *iface, int opts) memset(&psk, 0, sizeof(psk)); if (iface != NULL && strlcpy(psk.psk_ifname, iface, sizeof(psk.psk_ifname)) >= sizeof(psk.psk_ifname)) - errx(1, "invalid interface: %s\n", iface); + errx(1, "invalid interface: %s", iface); if (ioctl(dev, DIOCCLRSTATES, &psk)) err(1, "DIOCCLRSTATES"); @@ -402,7 +402,7 @@ pfctl_kill_states(int dev, const char *iface, int opts) memset(&last_dst, 0xff, sizeof(last_dst)); if (iface != NULL && strlcpy(psk.psk_ifname, iface, sizeof(psk.psk_ifname)) >= sizeof(psk.psk_ifname)) - errx(1, "invalid interface: %s\n", iface); + errx(1, "invalid interface: %s", iface); if ((ret_ga = getaddrinfo(state_kill[0], NULL, NULL, &res[0]))) { errx(1, "getaddrinfo: %s", gai_strerror(ret_ga)); |