From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexander Aring Date: Mon, 30 Jan 2023 14:24:36 -0500 Subject: [Cluster-devel] [PATCH dlm-tool 7/8] dlm_controld: constify timeval of dt_usec() In-Reply-To: <20230130192437.3330300-1-aahringo@redhat.com> References: <20230130192437.3330300-1-aahringo@redhat.com> Message-ID: <20230130192437.3330300-7-aahringo@redhat.com> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Those parameters are only used read only. We don't change any data where those pointers point to. --- dlm_controld/plock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlm_controld/plock.c b/dlm_controld/plock.c index 77c043fd..d83a79d2 100644 --- a/dlm_controld/plock.c +++ b/dlm_controld/plock.c @@ -198,7 +198,7 @@ static unsigned long time_diff_ms(struct timeval *begin, struct timeval *end) return (result.tv_sec * 1000) + (result.tv_usec / 1000); } -static uint64_t dt_usec(struct timeval *start, struct timeval *stop) +static uint64_t dt_usec(const struct timeval *start, const struct timeval *stop) { uint64_t dt; -- 2.31.1