Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern David Binderman in PR kern/51189: simplify loop con...
details: https://anonhg.NetBSD.org/src/rev/7481aa697afe
branches: trunk
changeset: 345482:7481aa697afe
user: martin <martin%NetBSD.org@localhost>
date: Mon May 30 11:24:40 2016 +0000
description:
David Binderman in PR kern/51189: simplify loop conditions
diffstat:
sys/kern/subr_optstr.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 08dad5da3d74 -r 7481aa697afe sys/kern/subr_optstr.c
--- a/sys/kern/subr_optstr.c Mon May 30 10:37:14 2016 +0000
+++ b/sys/kern/subr_optstr.c Mon May 30 11:24:40 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: subr_optstr.c,v 1.5 2008/04/28 20:24:04 martin Exp $ */
+/* $NetBSD: subr_optstr.c,v 1.6 2016/05/30 11:24:40 martin Exp $ */
/*-
* Copyright (c) 2006 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_optstr.c,v 1.5 2008/04/28 20:24:04 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_optstr.c,v 1.6 2016/05/30 11:24:40 martin Exp $");
#include <sys/param.h>
#include <sys/optstr.h>
@@ -51,7 +51,7 @@
found = false;
/* Skip any initial spaces until we find a word. */
- while (*optstr == ' ' && *optstr != '\0')
+ while (*optstr == ' ')
optstr++;
/* Search for the given key within the option string. */
@@ -73,7 +73,7 @@
optstr++;
/* And now skip until next word. */
- while (*optstr == ' ' && *optstr != '\0')
+ while (*optstr == ' ')
optstr++;
}
}
Home |
Main Index |
Thread Index |
Old Index