summaryrefslogtreecommitdiff
path: root/librabbitmq/amqp_socket.c
diff options
context:
space:
mode:
authorMichael Steinert <mike.steinert@gmail.com>2012-05-16 12:13:31 -0600
committerMichael Steinert <mike.steinert@gmail.com>2012-05-17 11:44:46 -0600
commitc921feb829e79a33938300350e61e3c3fb217968 (patch)
treeb2054ac86a99fc4a52ded75826aad86e2561781b /librabbitmq/amqp_socket.c
parent162fc19f4d896c3db862f1da303823dcbe9780ec (diff)
downloadrabbitmq-c-github-ask-c921feb829e79a33938300350e61e3c3fb217968.tar.gz
Set default visibility to hidden & enable a couple more warnings
Enable the following GCC options: 1. -Wstrict-prototypes 2. -Wcast-align 3. -fno-common 4. -fvisibility=hidden This commit also includes some general cleanup of header files (mostly for readability). Signed-off-by: Michael Steinert <mike.steinert@gmail.com>
Diffstat (limited to 'librabbitmq/amqp_socket.c')
-rw-r--r--librabbitmq/amqp_socket.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/librabbitmq/amqp_socket.c b/librabbitmq/amqp_socket.c
index 60bb545..6b9486c 100644
--- a/librabbitmq/amqp_socket.c
+++ b/librabbitmq/amqp_socket.c
@@ -34,6 +34,7 @@
#include "config.h"
#endif
+#include "amqp_private.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -41,11 +42,6 @@
#include <stdarg.h>
#include <assert.h>
-#include "amqp.h"
-#include "amqp_framing.h"
-#include "amqp_private.h"
-
-
int amqp_open_socket(char const *hostname,
int portnumber)
{