summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Steinert <mike.steinert@gmail.com>2012-05-25 14:09:51 -0600
committerAlan Antonuk <alan.antonuk@gmail.com>2013-04-09 15:34:29 -0700
commit55ce9370693335cfaef06ed6ae9dc0bd51c7de41 (patch)
treec09faa99da7a7855fdb988ff3eb5d77b80244ef1
parentabb9ad411043907c69d7c949082137e7a2918033 (diff)
downloadrabbitmq-c-github-ask-55ce9370693335cfaef06ed6ae9dc0bd51c7de41.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
3 files changed, 3 insertions, 5 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 d92baa2..dd2828e 100644
--- a/librabbitmq/amqp.h
+++ b/librabbitmq/amqp.h
@@ -140,7 +140,6 @@ typedef _W64 int ssize_t;
# define AMQP_CALL
#endif
-#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
@@ -586,7 +585,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 72a4126..b15675c 100644
--- a/librabbitmq/amqp_url.c
+++ b/librabbitmq/amqp_url.c
@@ -52,7 +52,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. */
@@ -121,7 +121,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;
}