summaryrefslogtreecommitdiff
path: root/src/NextEvent.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2022-06-17 20:44:12 -0400
committerThomas E. Dickey <dickey@invisible-island.net>2022-06-18 06:36:49 -0400
commit806aefc8c6175b6252a300905a327e9d60939af7 (patch)
treef6413008b2fc8c274598c89e70faf147c45b0d4d /src/NextEvent.c
parenta80c543bb9955199619a2cb6280b89a879fd8811 (diff)
cppcheck fixes (const, null dereferencing, uninitialized, scope)
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
Diffstat (limited to 'src/NextEvent.c')
-rw-r--r--src/NextEvent.c4
1 files changed, 2 insertions, 2 deletions
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)
{