From: jNullj <15849761+jNullj@users.noreply.github.com> Date: Mon, 6 May 2024 21:30:27 +0000 (+0300) Subject: Refactor delay_for function signature to use const struct timeval X-Git-Tag: v2.42-start~317^2~14 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1179bef2f433d2ef790f69c211171d4fd47a052d;p=thirdparty%2Futil-linux.git Refactor delay_for function signature to use const struct timeval delay_for does not change delay. Hint about that using const. This allows for usage of const delay and improves readability. --- diff --git a/term-utils/scriptreplay.c b/term-utils/scriptreplay.c index 197e3e7e9..ab3581eed 100644 --- a/term-utils/scriptreplay.c +++ b/term-utils/scriptreplay.c @@ -88,7 +88,7 @@ getnum(const char *s) } static void -delay_for(struct timeval *delay) +delay_for(const struct timeval *delay) { #ifdef HAVE_NANOSLEEP struct timespec ts, remainder;