Convert GNU variadic macros to the ISO 9X variety.

This commit is contained in:
Mark Murray 2002-07-15 13:34:50 +00:00
parent 80a0ead4fe
commit a8966f6598
2 changed files with 5 additions and 3 deletions

View File

@ -469,7 +469,9 @@ int
iconv_lookupcp(char **cpp, const char *s)
{
if (cpp == NULL) {
ICDEBUG("warning a NULL list passed\n");
ICDEBUG("warning a NULL list passed\n", ""); /* XXX ISO variadic macros cannot
leave out the
variadic args */
return ENOENT;
}
for (; *cpp; cpp++)

View File

@ -146,9 +146,9 @@ int iconv_converter_donestub(struct iconv_converter_class *dp);
int iconv_converter_handler(module_t mod, int type, void *data);
#ifdef ICONV_DEBUG
#define ICDEBUG(format, args...) printf("%s: "format, __func__ ,## args)
#define ICDEBUG(format, ...) printf("%s: "format, __func__ , __VA_ARGS__)
#else
#define ICDEBUG(format, args...)
#define ICDEBUG(format, ...)
#endif
#endif /* !_KERNEL */