Skip to content

Commit 8c94944

Browse files
authored
resolving PR comments
1 parent 5c567d4 commit 8c94944

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

include/rabbitmq-c/amqp.h

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -891,20 +891,16 @@ amqp_bytes_t AMQP_CALL amqp_cstring_bytes(char const *cstr);
891891
* Wraps a string of bytes in an amqp_bytes_t
892892
*
893893
* Takes a string of bytes and its length and creates an
894-
* amqp_bytes_t that points to it. The string is not duplicated.
895-
*
896-
* For a given input cstr and length, The amqp_bytes_t output.bytes is the
897-
* same as cstr, length is the length of the string not including
898-
* the \0 terminator
894+
* amqp_bytes_t that points to it. The input is not duplicated.
899895
*
900-
* \param [in] cstr the string of bytes to wrap
896+
* \param [in] ptr the string of bytes to wrap
901897
* \param [in] length the length of the string
902898
* \return an amqp_bytes_t that describes the string
903899
*
904900
* \since v0.16
905901
*/
906902
AMQP_EXPORT
907-
amqp_bytes_t AMQP_CALL amqp_bytes_from_buffer(char const *cstr, size_t length);
903+
amqp_bytes_t AMQP_CALL amqp_bytes_from_buffer(void const *ptr, size_t length);
908904

909905
/**
910906
* Duplicates an amqp_bytes_t buffer.

0 commit comments

Comments
 (0)