summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Wragg <david@rabbitmq.com>2010-10-28 08:12:09 +0100
committerDavid Wragg <david@rabbitmq.com>2010-10-28 08:12:09 +0100
commit21ef8798cf7149bc3f16162f5286cf0f142f5b08 (patch)
tree125d95fd88d277e1170d5c205a7b4ef3f53de261
parent7ffc4a3d6f3df4407b8d214d4d79fe48c5f5a398 (diff)
downloadrabbitmq-c-github-ask-21ef8798cf7149bc3f16162f5286cf0f142f5b08.tar.gz
Fix a compiler warning when building under mingw
-rw-r--r--librabbitmq/amqp_socket.c2
-rw-r--r--librabbitmq/windows/socket.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/librabbitmq/amqp_socket.c b/librabbitmq/amqp_socket.c
index 8693b4d..f23b42b 100644
--- a/librabbitmq/amqp_socket.c
+++ b/librabbitmq/amqp_socket.c
@@ -101,7 +101,7 @@ int amqp_send_header(amqp_connection_state_t state) {
AMQP_PROTOCOL_VERSION_MAJOR,
AMQP_PROTOCOL_VERSION_MINOR,
AMQP_PROTOCOL_VERSION_REVISION };
- return send(state->sockfd, header, 8, 0);
+ return send(state->sockfd, (void *)header, 8, 0);
}
static amqp_bytes_t sasl_method_name(amqp_sasl_method_enum method) {
diff --git a/librabbitmq/windows/socket.h b/librabbitmq/windows/socket.h
index 3e0a378..38ca905 100644
--- a/librabbitmq/windows/socket.h
+++ b/librabbitmq/windows/socket.h
@@ -69,7 +69,7 @@ static inline int amqp_socket_setsockopt(int sock, int level, int optname,
/* same as WSABUF */
struct iovec {
u_long iov_len;
- char *iov_base;
+ void *iov_base;
};
static inline int amqp_socket_writev(int sock, struct iovec *iov, int nvecs)