diff options
author | Steven Van Ingelgem <steven@vaningelgem.be> | 2019-12-28 11:24:43 +0100 |
---|---|---|
committer | Alan Antonuk <alan.antonuk@gmail.com> | 2019-12-29 19:44:34 -0700 |
commit | 01bc215bff3919f6d40c2a2b1261050444eee04e (patch) | |
tree | 8579c368aff7fe4d156d476eaf09f5c3af291099 /librabbitmq/amqp_time.h | |
parent | 73fbc3704a0ee312fe6d56a6bd92f10e0f05d92c (diff) | |
download | rabbitmq-c-01bc215bff3919f6d40c2a2b1261050444eee04e.tar.gz |
Make all timeval's constant
Make all struct timeval parameters that can be a const, a const.
Diffstat (limited to 'librabbitmq/amqp_time.h')
-rw-r--r-- | librabbitmq/amqp_time.h | 4 |
1 files changed, 2 insertions, 2 deletions
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. |