Module Name: src
Committed By: skrll
Date: Sat Nov 19 15:30:12 UTC 2022
Modified Files:
src/sys/kern: subr_optstr.c
Log Message:
Style. NFCI.
To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/kern/subr_optstr.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/kern/subr_optstr.c
diff -u src/sys/kern/subr_optstr.c:1.6 src/sys/kern/subr_optstr.c:1.7
--- src/sys/kern/subr_optstr.c:1.6 Mon May 30 11:24:40 2016
+++ src/sys/kern/subr_optstr.c Sat Nov 19 15:30:12 2022
@@ -1,4 +1,4 @@
-/* $NetBSD: subr_optstr.c,v 1.6 2016/05/30 11:24:40 martin Exp $ */
+/* $NetBSD: subr_optstr.c,v 1.7 2022/11/19 15:30:12 skrll 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.6 2016/05/30 11:24:40 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_optstr.c,v 1.7 2022/11/19 15:30:12 skrll Exp $");
#include <sys/param.h>
#include <sys/optstr.h>
@@ -46,9 +46,7 @@ __KERNEL_RCSID(0, "$NetBSD: subr_optstr.
bool
optstr_get(const char *optstr, const char *key, char *buf, size_t bufsize)
{
- bool found;
-
- found = false;
+ bool found = false;
/* Skip any initial spaces until we find a word. */
while (*optstr == ' ')