From 01bc215bff3919f6d40c2a2b1261050444eee04e Mon Sep 17 00:00:00 2001 From: Steven Van Ingelgem Date: Sat, 28 Dec 2019 11:24:43 +0100 Subject: Make all timeval's constant Make all struct timeval parameters that can be a const, a const. --- librabbitmq/amqp_time.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'librabbitmq/amqp_time.h') diff --git a/librabbitmq/amqp_time.h b/librabbitmq/amqp_time.h index 194bf67..b7a6123 100644 --- a/librabbitmq/amqp_time.h +++ b/librabbitmq/amqp_time.h @@ -69,7 +69,7 @@ uint64_t amqp_get_monotonic_timestamp(void); * AMQP_STATUS_TIMER_FAILURE if the underlying call to get the current timestamp * fails. */ -int amqp_time_from_now(amqp_time_t *time, struct timeval *timeout); +int amqp_time_from_now(amqp_time_t *time, const struct timeval *timeout); /* Get a amqp_time_t that is seconds from now. * If seconds <= 0, then amqp_time_infinite() is created. @@ -109,7 +109,7 @@ int amqp_time_ms_until(amqp_time_t time); * AMQP_STATUS_TIMER_FAILURE is returned when the underlying call to get the * current timestamp fails. */ -int amqp_time_tv_until(amqp_time_t time, struct timeval *in, +int amqp_time_tv_until(amqp_time_t time, const struct timeval *in, struct timeval **out); /* Test whether current time is past the provided time. -- cgit v1.2.1