summaryrefslogtreecommitdiff
path: root/librabbitmq/unix
diff options
context:
space:
mode:
authorDavid Wragg <david@rabbitmq.com>2010-07-28 01:08:49 +0100
committerDavid Wragg <david@rabbitmq.com>2010-07-28 01:08:49 +0100
commit27235c0046dfc87b4f57c652681df4436fce3e0e (patch)
tree1f8bac3beade9b6e3907c322ea5131d703263943 /librabbitmq/unix
parentd0509667889cf799a252bb0c4e8b2d86d75645b6 (diff)
downloadrabbitmq-c-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/unix')
-rw-r--r--librabbitmq/unix/socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/librabbitmq/unix/socket.c b/librabbitmq/unix/socket.c
index f4a7195..9d37dfc 100644
--- a/librabbitmq/unix/socket.c
+++ b/librabbitmq/unix/socket.c
@@ -79,7 +79,7 @@ int amqp_socket_socket(int domain, int type, int proto)
return s;
}
-const char *amqp_os_error_string(int err)
+char *amqp_os_error_string(int err)
{
return strdup(strerror(err));
}