aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmdsserver
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-12-06 21:21:31 +0100
committerMattias Andrée <maandree@operamail.com>2014-12-06 21:21:31 +0100
commit0b61cca3c2b5c2d7b87a6871501bc8f38da3b823 (patch)
treea4dcb532daa4a808e02d046bb4b370cca3418705 /src/libmdsserver
parentmds-kbdc: parse_keys (diff)
downloadmds-0b61cca3c2b5c2d7b87a6871501bc8f38da3b823.tar.gz
mds-0b61cca3c2b5c2d7b87a6871501bc8f38da3b823.tar.bz2
mds-0b61cca3c2b5c2d7b87a6871501bc8f38da3b823.tar.xz
mds-kbdc: m + function calling
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--src/libmdsserver/macros.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/libmdsserver/macros.h b/src/libmdsserver/macros.h
index e7cfad5..7bd61db 100644
--- a/src/libmdsserver/macros.h
+++ b/src/libmdsserver/macros.h
@@ -53,13 +53,12 @@
/**
* Wrapper for `snprintf` that allows you to forget about the buffer size
*
- * @param buffer:char[] The buffer, must be of the type `char[]` and not `char*`
- * @param format:char* The format
- * @param ... The arguments
- * @return :int The number of bytes written, including the NUL-termination, negative on error
+ * @param buffer:char[] The buffer, must be of the type `char[]` and not `char*`
+ * @param ...:const char*, ... The format string and arguments
+ * @return :int The number of bytes written, including the NUL-termination, negative on error
*/
-#define xsnprintf(buffer, format, ...) \
- snprintf(buffer, sizeof(buffer) / sizeof(char), format, __VA_ARGS__)
+#define xsnprintf(buffer, ...) \
+ snprintf(buffer, sizeof(buffer) / sizeof(char), __VA_ARGS__)
/**