summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Steinert <mike.steinert@gmail.com>2012-05-25 14:09:51 -0600
committerMichael Steinert <mike.steinert@gmail.com>2012-05-27 10:39:58 -0600
commit6975333a871f976726925e8b358f22dbd92a683c (patch)
tree2a614d1e2c20db828e579ecfed611cd244b009a2
parentcd9b5141e68b4d09ecc251f5b8b9a8809132c059 (diff)
downloadrabbitmq-c-github-ask-6975333a871f976726925e8b358f22dbd92a683c.tar.gz
Switch from stdbool.h to amqp_boolean_t
Signed-off-by: Michael Steinert <mike.steinert@gmail.com>
-rw-r--r--librabbitmq/amqp-openssl.c1
-rw-r--r--librabbitmq/amqp.h3
-rw-r--r--librabbitmq/amqp_url.c4
-rw-r--r--tools/common.c2
4 files changed, 4 insertions, 6 deletions
diff --git a/librabbitmq/amqp-openssl.c b/librabbitmq/amqp-openssl.c
index 781ce8a..d15bb6b 100644
--- a/librabbitmq/amqp-openssl.c
+++ b/librabbitmq/amqp-openssl.c
@@ -30,7 +30,6 @@
#include <openssl/bio.h>
#include <openssl/err.h>
#include <openssl/ssl.h>
-#include <stdbool.h>
#include <stdlib.h>
#include <unistd.h>
diff --git a/librabbitmq/amqp.h b/librabbitmq/amqp.h
index fd87bad..01158cf 100644
--- a/librabbitmq/amqp.h
+++ b/librabbitmq/amqp.h
@@ -136,7 +136,6 @@ typedef _W64 int ssize_t;
# define AMQP_CALL
#endif
-#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
@@ -581,7 +580,7 @@ struct amqp_connection_info {
char *host;
char *vhost;
int port;
- bool ssl;
+ amqp_boolean_t ssl;
};
AMQP_PUBLIC_FUNCTION
diff --git a/librabbitmq/amqp_url.c b/librabbitmq/amqp_url.c
index 73ca4f6..ab4ac75 100644
--- a/librabbitmq/amqp_url.c
+++ b/librabbitmq/amqp_url.c
@@ -48,7 +48,7 @@ void amqp_default_connection_info(struct amqp_connection_info *ci)
ci->host = "localhost";
ci->port = 5672;
ci->vhost = "/";
- ci->ssl = false;
+ ci->ssl = 0;
}
/* Scan for the next delimiter, handling percent-encodings on the way. */
@@ -115,7 +115,7 @@ int amqp_parse_url(char *url, struct amqp_connection_info *parsed)
/* do nothing */
} else if (!strncmp(url, "amqps://", 8)) {
parsed->port = 5671;
- parsed->ssl = true;
+ parsed->ssl = 1;
} else {
goto out;
}
diff --git a/tools/common.c b/tools/common.c
index 2411325..8a982f8 100644
--- a/tools/common.c
+++ b/tools/common.c
@@ -296,7 +296,7 @@ static void init_connection_info(struct amqp_connection_info *ci)
#if WITH_SSL
if (amqp_ssl) {
- ci->ssl = true;
+ ci->ssl = 1;
}
#endif