From 1179bef2f433d2ef790f69c211171d4fd47a052d Mon Sep 17 00:00:00 2001 From: jNullj <15849761+jNullj@users.noreply.github.com> Date: Tue, 7 May 2024 00:30:27 +0300 Subject: [PATCH] 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. --- term-utils/scriptreplay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.3