summaryrefslogtreecommitdiff
path: root/librabbitmq/amqp_api.c
diff options
context:
space:
mode:
authorDavid Wragg <dpw@lshift.net>2010-05-30 23:31:40 +0100
committerDavid Wragg <dpw@lshift.net>2010-05-30 23:31:40 +0100
commit1c198e88d1a0c74676f8d6fade99b2531ba815b8 (patch)
tree133f008278e7badb652e94535ef29b58d383fea6 /librabbitmq/amqp_api.c
parentbf06e86975f474da30e9c74faff7a99b0734e00e (diff)
downloadrabbitmq-c-github-ask-1c198e88d1a0c74676f8d6fade99b2531ba815b8.tar.gz
A Windows port, using MinGW/MSYS
Diffstat (limited to 'librabbitmq/amqp_api.c')
-rw-r--r--librabbitmq/amqp_api.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/librabbitmq/amqp_api.c b/librabbitmq/amqp_api.c
index 3a4440f..9918819 100644
--- a/librabbitmq/amqp_api.c
+++ b/librabbitmq/amqp_api.c
@@ -52,7 +52,6 @@
#include <stdio.h>
#include <string.h>
#include <stdint.h>
-#include <errno.h>
#include "amqp.h"
#include "amqp_framing.h"
@@ -85,9 +84,8 @@ const char *amqp_error_string(int err)
break;
case ERROR_CATEGORY_OS:
- str = strerror(err);
- break;
-
+ return amqp_os_error_string(err);
+
default:
str = "(undefined error category)";
}