diff options
author | David Wragg <david@rabbitmq.com> | 2010-07-28 01:08:49 +0100 |
---|---|---|
committer | David Wragg <david@rabbitmq.com> | 2010-07-28 01:08:49 +0100 |
commit | 27235c0046dfc87b4f57c652681df4436fce3e0e (patch) | |
tree | 1f8bac3beade9b6e3907c322ea5131d703263943 /librabbitmq/amqp_private.h | |
parent | d0509667889cf799a252bb0c4e8b2d86d75645b6 (diff) | |
download | rabbitmq-c-github-ask-27235c0046dfc87b4f57c652681df4436fce3e0e.tar.gz |
Fix "const char *" to "void *" conversion warnings
Functions returning a heap-allocated string should return a "char *",
not a "const char *": Because the result is heap-allocated and becomes
the responsibility of the caller, it is certainly modifiable. And the
pointer will likely get passed to free(), triggering a conversion
warning from gcc. So remove all the relevant consts.
Diffstat (limited to 'librabbitmq/amqp_private.h')
-rw-r--r-- | librabbitmq/amqp_private.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/librabbitmq/amqp_private.h b/librabbitmq/amqp_private.h index a9969be..c30663a 100644 --- a/librabbitmq/amqp_private.h +++ b/librabbitmq/amqp_private.h @@ -76,7 +76,7 @@ extern "C" { #define ERROR_CONNECTION_CLOSED 7 #define ERROR_MAX 7 -extern const char *amqp_os_error_string(int err); +extern char *amqp_os_error_string(int err); /* * Connection states: |