aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-08-25 09:57:02 +0200
committerMattias Andrée <maandree@operamail.com>2014-08-25 09:57:02 +0200
commit71b0be72be8e2d481c76c62c52bd954b273accfd (patch)
tree751a2c4d33277752a1fc7398ceb14672f43bc2dd
parentm doc (diff)
downloadmds-71b0be72be8e2d481c76c62c52bd954b273accfd.tar.gz
mds-71b0be72be8e2d481c76c62c52bd954b273accfd.tar.bz2
mds-71b0be72be8e2d481c76c62c52bd954b273accfd.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--src/libmdsserver/macros.h12
1 files changed, 6 insertions, 6 deletions
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]
/**