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.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.h')
-rw-r--r-- | librabbitmq/amqp.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/librabbitmq/amqp.h b/librabbitmq/amqp.h index 0d0b99f..dcca862 100644 --- a/librabbitmq/amqp.h +++ b/librabbitmq/amqp.h @@ -1548,7 +1548,7 @@ int AMQP_CALL amqp_simple_wait_frame(amqp_connection_state_t state, AMQP_PUBLIC_FUNCTION int AMQP_CALL amqp_simple_wait_frame_noblock(amqp_connection_state_t state, amqp_frame_t *decoded_frame, - struct timeval *tv); + const struct timeval *tv); /** * Waits for a specific method from the broker @@ -2245,7 +2245,7 @@ typedef struct amqp_envelope_t_ { AMQP_PUBLIC_FUNCTION amqp_rpc_reply_t AMQP_CALL amqp_consume_message(amqp_connection_state_t state, amqp_envelope_t *envelope, - struct timeval *timeout, + const struct timeval *timeout, int flags); /** @@ -2365,7 +2365,7 @@ int AMQP_CALL amqp_socket_open(amqp_socket_t *self, const char *host, int port); */ AMQP_PUBLIC_FUNCTION int AMQP_CALL amqp_socket_open_noblock(amqp_socket_t *self, const char *host, - int port, struct timeval *timeout); + int port, const struct timeval *timeout); /** * Get the socket descriptor in use by a socket object. @@ -2473,7 +2473,7 @@ struct timeval *AMQP_CALL */ AMQP_PUBLIC_FUNCTION int AMQP_CALL amqp_set_handshake_timeout(amqp_connection_state_t state, - struct timeval *timeout); + const struct timeval *timeout); /** * Get the RPC timeout @@ -2531,7 +2531,7 @@ struct timeval *AMQP_CALL amqp_get_rpc_timeout(amqp_connection_state_t state); */ AMQP_PUBLIC_FUNCTION int AMQP_CALL amqp_set_rpc_timeout(amqp_connection_state_t state, - struct timeval *timeout); + const struct timeval *timeout); AMQP_END_DECLS |