summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTom Cosgrove <tom@cvs.openbsd.org>2004-06-26 17:50:48 +0000
committerTom Cosgrove <tom@cvs.openbsd.org>2004-06-26 17:50:48 +0000
commitb4324d525e05fb5b66d946799408bfc49a25a910 (patch)
treef959750f285c04681cff17f61ecbb34885cf1e04 /sys
parenta3223076fbcf9fd0445a492f0e5a991836205eb6 (diff)
Simplify expression in loop.
ok deraadt@
Diffstat (limited to 'sys')
-rw-r--r--sys/stand/boot/cmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/stand/boot/cmd.c b/sys/stand/boot/cmd.c
index 57712a3853a..6395d4d42b5 100644
--- a/sys/stand/boot/cmd.c
+++ b/sys/stand/boot/cmd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd.c,v 1.56 2004/06/25 01:32:54 tom Exp $ */
+/* $OpenBSD: cmd.c,v 1.57 2004/06/26 17:50:47 tom Exp $ */
/*
* Copyright (c) 1997-1999 Michael Shalayeff
@@ -168,7 +168,7 @@ docmd(void)
if (cmd.cmd == NULL) {
/* command */
- for (p = cmd_buf; *p && (*p == ' ' || *p == '\t'); p++)
+ for (p = cmd_buf; *p == ' ' || *p == '\t'; p++)
;
if (*p == '#' || *p == '\0') { /* comment or empty string */
#ifdef DEBUG