summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkokan <peter.kokai@balabit.com>2017-09-11 07:42:29 +0200
committerAlan Antonuk <alan.antonuk@gmail.com>2017-09-12 00:11:46 -0700
commit45e699b7c5bf11168ad325df417fdd18cb86e862 (patch)
tree2a2667b77ff3f076c5aaef2a0a2784ed4b2cd5c0
parent248f4d70693444de55910a3e2eaf9b2fb463beca (diff)
downloadrabbitmq-c-45e699b7c5bf11168ad325df417fdd18cb86e862.tar.gz
Calling va_start with enum is undefined behavior, replaced enum with compatible int.
Signed-off-by: kokan <peter.kokai@balabit.com>
-rw-r--r--librabbitmq/amqp_socket.c4
1 files 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;