From 0b61cca3c2b5c2d7b87a6871501bc8f38da3b823 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 6 Dec 2014 21:21:31 +0100 Subject: mds-kbdc: m + function calling 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 | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src/libmdsserver') 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__) /** -- cgit v1.2.3-70-g09d2