2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-09-01 15:05:23 +00:00

added ISC_FORMAT_PRINTF checks

This commit is contained in:
Andreas Gustafsson
2001-07-02 17:05:46 +00:00
parent ea2a4bbc5d
commit 207c7c1ea3

View File

@@ -15,12 +15,13 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: parser.c,v 1.57 2001/06/29 18:36:10 gson Exp $ */ /* $Id: parser.c,v 1.58 2001/07/02 17:05:46 gson Exp $ */
#include <config.h> #include <config.h>
#include <isc/buffer.h> #include <isc/buffer.h>
#include <isc/dir.h> #include <isc/dir.h>
#include <isc/formatcheck.h>
#include <isc/lex.h> #include <isc/lex.h>
#include <isc/log.h> #include <isc/log.h>
#include <isc/mem.h> #include <isc/mem.h>
@@ -374,10 +375,12 @@ cfg_getstringtoken(cfg_parser_t *pctx);
static void static void
parser_error(cfg_parser_t *pctx, unsigned int flags, parser_error(cfg_parser_t *pctx, unsigned int flags,
const char *fmt, ...); const char *fmt, ...) ISC_FORMAT_PRINTF(3, 4);
static void static void
parser_warning(cfg_parser_t *pctx, unsigned int flags, parser_warning(cfg_parser_t *pctx, unsigned int flags,
const char *fmt, ...); const char *fmt, ...) ISC_FORMAT_PRINTF(3, 4);
static void static void
parser_complain(cfg_parser_t *pctx, isc_boolean_t is_warning, parser_complain(cfg_parser_t *pctx, isc_boolean_t is_warning,
unsigned int flags, const char *format, va_list args); unsigned int flags, const char *format, va_list args);