summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntoine Jacoutot <ajacoutot@cvs.openbsd.org>2021-11-12 08:47:03 +0000
committerAntoine Jacoutot <ajacoutot@cvs.openbsd.org>2021-11-12 08:47:03 +0000
commit4fbd3e11caf31cd3bc6e893f332752b395d80542 (patch)
tree47cf10258fb4148a87808eb42ab11cf23a898bf8
parentb2223d542164bbc3b8905ce1ceaa605c0272e58e (diff)
Consistency in test; no behavior change.
-rw-r--r--etc/rc.d/rc.subr6
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/rc.d/rc.subr b/etc/rc.d/rc.subr
index defac2d116e..6b973be1ddb 100644
--- a/etc/rc.d/rc.subr
+++ b/etc/rc.d/rc.subr
@@ -1,4 +1,4 @@
-# $OpenBSD: rc.subr,v 1.148 2021/11/12 08:44:05 ajacoutot Exp $
+# $OpenBSD: rc.subr,v 1.149 2021/11/12 08:47:02 ajacoutot Exp $
#
# Copyright (c) 2010, 2011, 2014-2021 Antoine Jacoutot <ajacoutot@openbsd.org>
# Copyright (c) 2010, 2011 Ingo Schwarze <schwarze@openbsd.org>
@@ -152,7 +152,7 @@ _rc_wait() {
if [ X"$1" = X"start" ]; then # prevent hanging the boot sequence
trap "_rc_alarm" ALRM
- while (( SECONDS < daemon_timeout )); do
+ while ((SECONDS < daemon_timeout)); do
if _rc_do rc_check; then
[ X"${rc_bg}" = X"YES" ] || [ -z "$$" ] && break
fi
@@ -161,7 +161,7 @@ _rc_wait() {
pkill -ALRM -P $$
return
fi
- while (( SECONDS < daemon_timeout )); do
+ while ((SECONDS < daemon_timeout)); do
case "$1" in
reload)
_rc_do rc_check && return 0 ;;