diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2002-12-10 11:03:53 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2002-12-10 11:03:53 +0000 |
commit | 2457b7eca6148050cc1cc360e58d0f75cfe9b2ec (patch) | |
tree | 209e45fe915d970922562ce3f441820a435b02ef /sbin | |
parent | 7578e564a03d536e38f7b4344230c5942e7421ed (diff) |
don't warnx after ioctl, use warn
pointed out by form@ via mpech@
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/pfctl/pfctl.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sbin/pfctl/pfctl.c b/sbin/pfctl/pfctl.c index 74383a074bb..3d89f3641e6 100644 --- a/sbin/pfctl/pfctl.c +++ b/sbin/pfctl/pfctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pfctl.c,v 1.101 2002/12/09 18:26:09 henning Exp $ */ +/* $OpenBSD: pfctl.c,v 1.102 2002/12/10 11:03:52 henning Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -1072,7 +1072,7 @@ pfctl_show_anchors(int dev, int opts) memset(&pa, 0, sizeof(pa)); if (ioctl(dev, DIOCGETANCHORS, &pa)) { - warnx("DIOCGETANCHORS"); + warn("DIOCGETANCHORS"); return (-1); } mnr = pa.nr; @@ -1080,7 +1080,7 @@ pfctl_show_anchors(int dev, int opts) for (nr = 0; nr < mnr; ++nr) { pa.nr = nr; if (ioctl(dev, DIOCGETANCHOR, &pa)) { - warnx("DIOCGETANCHOR"); + warn("DIOCGETANCHOR"); return (-1); } printf(" %s\n", pa.name); @@ -1095,7 +1095,7 @@ pfctl_show_anchors(int dev, int opts) fprintf(stderr, "No rulesets in anchor '%s'.\n", anchorname); else - warnx("DIOCGETRULESETS"); + warn("DIOCGETRULESETS"); return (-1); } mnr = pr.nr; @@ -1103,7 +1103,7 @@ pfctl_show_anchors(int dev, int opts) for (nr = 0; nr < mnr; ++nr) { pr.nr = nr; if (ioctl(dev, DIOCGETRULESET, &pr)) { - warnx("DIOCGETRULESET"); + warn("DIOCGETRULESET"); return (-1); } printf(" %s:%s\n", pr.anchor, pr.name); |