From 71b0be72be8e2d481c76c62c52bd954b273accfd Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 25 Aug 2014 09:57:02 +0200 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/libmdsserver/macros.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/libmdsserver/macros.h b/src/libmdsserver/macros.h index a7707ff..f6e60d1 100644 --- a/src/libmdsserver/macros.h +++ b/src/libmdsserver/macros.h @@ -149,14 +149,14 @@ /** * Get the value of an element a buffer that is being cast * - * @param buffer:char* The buffer - * @param type The data type of the elements for the data type to cast the buffer to - * @param index:size_t The index of the element to address - * @param variable:type Slot to set with the value of the element - * @return variable: The value of the element + * @param buffer:const char* The buffer + * @param type The data type of the elements for the data type to cast the buffer to + * @param index:size_t The index of the element to address + * @param variable:type Slot to set with the value of the element + * @return variable: The value of the element */ #define buf_get(buffer, type, index, variable) \ - variable = ((type*)(buffer))[index] + variable = ((const type*)(buffer))[index] /** -- cgit v1.2.3-70-g09d2