Use (void*)NULL instead of NULL in varargs.