From 45e699b7c5bf11168ad325df417fdd18cb86e862 Mon Sep 17 00:00:00 2001 From: kokan Date: Mon, 11 Sep 2017 07:42:29 +0200 Subject: Calling va_start with enum is undefined behavior, replaced enum with compatible int. Signed-off-by: kokan --- librabbitmq/amqp_socket.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/librabbitmq/amqp_socket.c b/librabbitmq/amqp_socket.c index 661c029..aa4f496 100644 --- a/librabbitmq/amqp_socket.c +++ b/librabbitmq/amqp_socket.c @@ -1494,7 +1494,7 @@ amqp_rpc_reply_t amqp_login(amqp_connection_state_t state, int channel_max, int frame_max, int heartbeat, - amqp_sasl_method_enum sasl_method, + int sasl_method, ...) { va_list vl; @@ -1517,7 +1517,7 @@ amqp_rpc_reply_t amqp_login_with_properties(amqp_connection_state_t state, int frame_max, int heartbeat, const amqp_table_t *client_properties, - amqp_sasl_method_enum sasl_method, + int sasl_method, ...) { va_list vl; -- cgit v1.2.1