summaryrefslogtreecommitdiff
path: root/usr.bin/man
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2001-01-31 19:26:52 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2001-01-31 19:26:52 +0000
commite95a23cb39fa8e1cd885f1820c729c1530f61239 (patch)
tree55122a4957e82a91c95da881660acd42bc3fe9dc /usr.bin/man
parent10b60e1a48da698f3d212a31ed580df32b711fe7 (diff)
KNF
Diffstat (limited to 'usr.bin/man')
-rw-r--r--usr.bin/man/man.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/usr.bin/man/man.c b/usr.bin/man/man.c
index 738b6246556..21add15672e 100644
--- a/usr.bin/man/man.c
+++ b/usr.bin/man/man.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: man.c,v 1.15 1999/10/18 01:46:36 aaron Exp $ */
+/* $OpenBSD: man.c,v 1.16 2001/01/31 19:26:51 deraadt Exp $ */
/* $NetBSD: man.c,v 1.7 1995/09/28 06:05:34 tls Exp $ */
/*
@@ -44,7 +44,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)man.c 8.17 (Berkeley) 1/31/95";
#else
-static char rcsid[] = "$OpenBSD: man.c,v 1.15 1999/10/18 01:46:36 aaron Exp $";
+static char rcsid[] = "$OpenBSD: man.c,v 1.16 2001/01/31 19:26:51 deraadt Exp $";
#endif
#endif /* not lint */
@@ -561,7 +561,8 @@ build_page(fmt, pathp)
intmpp = addlist("_intmp");
/* Move to the printf(3) format string. */
- for (; *fmt && isspace(*fmt); ++fmt);
+ for (; *fmt && isspace(*fmt); ++fmt)
+ ;
/*
* Get a temporary file and build a version of the file
@@ -681,8 +682,10 @@ check_pager(name)
* if the user uses "more", we make it "more -s"; watch out for
* PAGER = "mypager /usr/ucb/more"
*/
- for (p = name; *p && !isspace(*p); ++p);
- for (; p > name && *p != '/'; --p);
+ for (p = name; *p && !isspace(*p); ++p)
+ ;
+ for (; p > name && *p != '/'; --p)
+ ;
if (p != name)
++p;