From 806aefc8c6175b6252a300905a327e9d60939af7 Mon Sep 17 00:00:00 2001 From: "Thomas E. Dickey" Date: Fri, 17 Jun 2022 20:44:12 -0400 Subject: cppcheck fixes (const, null dereferencing, uninitialized, scope) Signed-off-by: Thomas E. Dickey --- src/NextEvent.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/NextEvent.c') diff --git a/src/NextEvent.c b/src/NextEvent.c index c7b9345..5c754b0 100644 --- a/src/NextEvent.c +++ b/src/NextEvent.c @@ -144,7 +144,7 @@ static SignalEventRec *freeSignalRecs; #endif static void -AdjustHowLong(unsigned long *howlong, struct timeval *start_time) +AdjustHowLong(unsigned long *howlong, const struct timeval *start_time) { struct timeval new_time, time_spent, lstart_time; @@ -332,7 +332,7 @@ InitFds(XtAppContext app, static void AdjustTimes(XtAppContext app, Boolean block, - unsigned long *howlong, + const unsigned long *howlong, Boolean ignoreTimers, wait_times_ptr_t wt) { -- cgit v1.2.3