From: Alexander Aring Date: Thu, 2 Mar 2023 12:14:33 -0500 Subject: [Cluster-devel] [PATCH dlm-tool 06/14] dlm_controld: constify timeval of dt_usec() In-Reply-To: <20230302171441.1509914-1-aahringo@redhat.com> References: <20230302171441.1509914-1-aahringo@redhat.com> Message-ID: <20230302171441.1509914-6-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 462c9212..8b052a94 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