Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/inetd inetd: remove redundant tests before calling ...
details: https://anonhg.NetBSD.org/src/rev/8ae6de59411f
branches: trunk
changeset: 1023327:8ae6de59411f
user: rillig <rillig%NetBSD.org@localhost>
date: Fri Sep 03 21:02:04 2021 +0000
description:
inetd: remove redundant tests before calling isspace
diffstat:
usr.sbin/inetd/inetd.c | 6 +++---
usr.sbin/inetd/ipsec.c | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diffs (54 lines):
diff -r 8e19fb637897 -r 8ae6de59411f usr.sbin/inetd/inetd.c
--- a/usr.sbin/inetd/inetd.c Fri Sep 03 20:44:23 2021 +0000
+++ b/usr.sbin/inetd/inetd.c Fri Sep 03 21:02:04 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: inetd.c,v 1.135 2021/09/03 20:41:19 rillig Exp $ */
+/* $NetBSD: inetd.c,v 1.136 2021/09/03 21:02:04 rillig Exp $ */
/*-
* Copyright (c) 1998, 2003 The NetBSD Foundation, Inc.
@@ -66,7 +66,7 @@
#if 0
static char sccsid[] = "@(#)inetd.c 8.4 (Berkeley) 4/13/94";
#else
-__RCSID("$NetBSD: inetd.c,v 1.135 2021/09/03 20:41:19 rillig Exp $");
+__RCSID("$NetBSD: inetd.c,v 1.136 2021/09/03 21:02:04 rillig Exp $");
#endif
#endif /* not lint */
@@ -1234,7 +1234,7 @@
/* lines starting with #@ is not a comment, but the policy */
if (cp[1] == '@') {
char *p;
- for (p = cp + 2; p && *p && isspace((unsigned char)*p); p++)
+ for (p = cp + 2; isspace((unsigned char)*p); p++)
;
if (*p == '\0') {
if (policy)
diff -r 8e19fb637897 -r 8ae6de59411f usr.sbin/inetd/ipsec.c
--- a/usr.sbin/inetd/ipsec.c Fri Sep 03 20:44:23 2021 +0000
+++ b/usr.sbin/inetd/ipsec.c Fri Sep 03 21:02:04 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ipsec.c,v 1.7 2021/09/03 20:24:28 rillig Exp $ */
+/* $NetBSD: ipsec.c,v 1.8 2021/09/03 21:02:04 rillig Exp $ */
/*
* Copyright (C) 1999 WIDE Project.
@@ -69,7 +69,7 @@
p = strtok(p, ";");
if (p == NULL)
break;
- while (*p && isspace((unsigned char)*p))
+ while (isspace((unsigned char)*p))
p++;
if (*p == '\0') {
p = NULL;
@@ -103,7 +103,7 @@
p = strtok(p, ";");
if (p == NULL)
break;
- while (*p && isspace((unsigned char)*p))
+ while (isspace((unsigned char)*p))
p++;
if (*p == '\0') {
p = NULL;
Home |
Main Index |
Thread Index |
Old Index