From 4fbd3e11caf31cd3bc6e893f332752b395d80542 Mon Sep 17 00:00:00 2001 From: Antoine Jacoutot Date: Fri, 12 Nov 2021 08:47:03 +0000 Subject: Consistency in test; no behavior change. --- etc/rc.d/rc.subr | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'etc/rc.d') 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 # Copyright (c) 2010, 2011 Ingo Schwarze @@ -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 ;; -- cgit v1.2.3