mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Fix improper handling of variadic args with ICDEBUG
PR: kern/168095 Submitted by: gcooper
This commit is contained in:
parent
bc6f23e0ad
commit
f529372e8a
2 changed files with 2 additions and 4 deletions
|
|
@ -549,9 +549,7 @@ int
|
|||
iconv_lookupcp(char **cpp, const char *s)
|
||||
{
|
||||
if (cpp == NULL) {
|
||||
ICDEBUG("warning a NULL list passed\n", ""); /* XXX ISO variadic macros cannot
|
||||
leave out the
|
||||
variadic args */
|
||||
ICDEBUG("warning a NULL list passed\n", "");
|
||||
return ENOENT;
|
||||
}
|
||||
for (; *cpp; cpp++)
|
||||
|
|
|
|||
|
|
@ -240,7 +240,7 @@ int iconv_converter_tolowerstub(int c, void *handle);
|
|||
int iconv_converter_handler(module_t mod, int type, void *data);
|
||||
|
||||
#ifdef ICONV_DEBUG
|
||||
#define ICDEBUG(format, ...) printf("%s: "format, __func__ , __VA_ARGS__)
|
||||
#define ICDEBUG(format, ...) printf("%s: "format, __func__ , ## __VA_ARGS__)
|
||||
#else
|
||||
#define ICDEBUG(format, ...)
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue