From b69dad68fe26b57ccc0d8e56535b2a5243a249b0 Mon Sep 17 00:00:00 2001 From: Daniel Hartmeier Date: Tue, 13 Nov 2001 19:10:00 +0000 Subject: Escape \ in example. --- share/man/man4/pf.4 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'share/man') diff --git a/share/man/man4/pf.4 b/share/man/man4/pf.4 index 6283452eb44..6e6bc0e91b4 100644 --- a/share/man/man4/pf.4 +++ b/share/man/man4/pf.4 @@ -1,4 +1,4 @@ -.\" $OpenBSD: pf.4,v 1.9 2001/11/13 18:51:24 dhartmei Exp $ +.\" $OpenBSD: pf.4,v 1.10 2001/11/13 19:09:59 dhartmei Exp $ .\" .\" Copyright (C) 2001, Kjell Wooding. All rights reserved. .\" @@ -269,14 +269,14 @@ int main(int argc, char *argv[]) struct pfioc_natlook nl; if (argc != 5) { - printf("%s \n", + printf("%s \\n", argv[0]); return 1; } dev = open("/dev/pf", O_RDWR); if (dev == -1) - err(0, "open(\"/dev/pf\") failed"); + err(0, "open(\\"/dev/pf\\") failed"); memset(&nl, 0, sizeof(struct pfioc_natlook)); nl.saddr.v4.s_addr = read_address(argv[1]); @@ -291,7 +291,7 @@ int main(int argc, char *argv[]) err(0, "DIOCNATLOOK"); printf("internal host "); print_address(nl.rsaddr.v4.s_addr); - printf(":%u\n", ntohs(nl.rsport)); + printf(":%u\\n", ntohs(nl.rsport)); close(dev); return 0; -- cgit v1.2.3