summaryrefslogtreecommitdiff
path: root/share/man
diff options
context:
space:
mode:
authorMike Pechkin <mpech@cvs.openbsd.org>2002-10-25 09:27:55 +0000
committerMike Pechkin <mpech@cvs.openbsd.org>2002-10-25 09:27:55 +0000
commitac8382267e13d0855e60c33368e17c9f23511cab (patch)
tree2f554624f575f88952d29a4a3b74994e8cd4cffa /share/man
parent7b228609fdc69fedc7e9d462efc40a40d3e86253 (diff)
Fix example.
If error don't use 0 in err/errx. More commits are comming. dhartmei@ ok
Diffstat (limited to 'share/man')
-rw-r--r--share/man/man4/pf.46
1 files changed, 3 insertions, 3 deletions
diff --git a/share/man/man4/pf.4 b/share/man/man4/pf.4
index 1104c183322..5ed898b750e 100644
--- a/share/man/man4/pf.4
+++ b/share/man/man4/pf.4
@@ -1,4 +1,4 @@
-.\" $OpenBSD: pf.4,v 1.17 2002/07/15 14:04:28 pb Exp $
+.\" $OpenBSD: pf.4,v 1.18 2002/10/25 09:27:54 mpech Exp $
.\"
.\" Copyright (C) 2001, Kjell Wooding. All rights reserved.
.\"
@@ -327,7 +327,7 @@ main(int argc, char *argv[])
dev = open("/dev/pf", O_RDWR);
if (dev == -1)
- err(0, "open(\\"/dev/pf\\") failed");
+ err(1, "open(\\"/dev/pf\\") failed");
memset(&nl, 0, sizeof(struct pfioc_natlook));
nl.saddr.v4.s_addr = read_address(argv[1]);
@@ -339,7 +339,7 @@ main(int argc, char *argv[])
nl.direction = PF_IN;
if (ioctl(dev, DIOCNATLOOK, &nl))
- err(0, "DIOCNATLOOK");
+ err(1, "DIOCNATLOOK");
printf("internal host ");
print_address(nl.rsaddr.v4.s_addr);