summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorDavid Wragg <david@rabbitmq.com>2011-07-05 17:52:14 +0100
committerDavid Wragg <david@rabbitmq.com>2011-07-05 17:52:14 +0100
commita1116487c0804c2155d3ee0e4217c5721a17d65f (patch)
tree58d6cbdf774012fa8ba36c3f31df3c5cab7b6e08 /tools
parent9faad13ff7fa0434941c102fc34c2b0eb6065e2f (diff)
downloadrabbitmq-c-github-ask-a1116487c0804c2155d3ee0e4217c5721a17d65f.tar.gz
die_errno should use the err parameter, not errno
Diffstat (limited to 'tools')
-rw-r--r--tools/common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/common.c b/tools/common.c
index 02c0655..8277342 100644
--- a/tools/common.c
+++ b/tools/common.c
@@ -73,7 +73,7 @@ void die_errno(int err, const char *fmt, ...)
va_start(ap, fmt);
vfprintf(stderr, fmt, ap);
va_end(ap);
- fprintf(stderr, ": %s\n", strerror(errno));
+ fprintf(stderr, ": %s\n", strerror(err));
exit(1);
}