diff options
Diffstat (limited to 'librabbitmq/amqp.h')
-rw-r--r-- | librabbitmq/amqp.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/librabbitmq/amqp.h b/librabbitmq/amqp.h index 0388bd1..2a0bf19 100644 --- a/librabbitmq/amqp.h +++ b/librabbitmq/amqp.h @@ -588,11 +588,10 @@ AMQP_CALL amqp_data_in_buffer(amqp_connection_state_t state); /* * Get the error string for the given error code. * - * The returned string resides on the heap; the caller is responsible - * for freeing it. + * Error string is statically allocated. (API changed in v0.4.0) */ AMQP_PUBLIC_FUNCTION -char * +const char * AMQP_CALL amqp_error_string(int err); AMQP_PUBLIC_FUNCTION |