reviewed: bwelling

1094.   [func]          libbind: add support gcc's format string checking.
This commit is contained in:
Mark Andrews 2002-07-11 23:32:35 +00:00
parent 41df3594b4
commit 2dbeb26f3d
6 changed files with 24 additions and 5 deletions

View file

@ -138,6 +138,8 @@
1209. [bug] Dig, host, nslookup were not checking the message ids
on the responses. [RT #2454]
1094. [func] libbind: add support gcc's format string checking.
--- 9.2.1 released ---
1271. [port] win32: a make file contained absolute version specific

View file

@ -19,7 +19,7 @@
*/
/*
* $Id: ctl.h,v 1.1 2001/03/29 06:31:35 marka Exp $
* $Id: ctl.h,v 1.1.2.1 2002/07/11 23:32:30 marka Exp $
*/
#include <sys/types.h>
@ -62,7 +62,12 @@ struct ctl_verb {
#define ctl_logger __ctl_logger
#ifdef __GNUC__
void ctl_logger(enum ctl_severity, const char *, ...)
__attribute__((__format__(__printf__, 2, 3)));
#else
void ctl_logger(enum ctl_severity, const char *, ...);
#endif
/* Client symbols. */

View file

@ -82,7 +82,12 @@ int log_check_channel(log_context, int, log_channel);
int log_check(log_context, int, int);
void log_vwrite(log_context, int, int, const char *,
va_list args);
#ifdef __GNUC__
void log_write(log_context, int, int, const char *, ...)
__attribute__((__format__(__printf__, 4, 5)));
#else
void log_write(log_context, int, int, const char *, ...);
#endif
int log_new_context(int, char **, log_context *);
void log_free_context(log_context);
int log_add_channel(log_context, int, log_channel);

View file

@ -16,7 +16,7 @@
*/
/*
* $Id: irp_p.h,v 1.1 2001/03/29 06:31:49 marka Exp $
* $Id: irp_p.h,v 1.1.2.1 2002/07/11 23:32:34 marka Exp $
*/
#ifndef _IRP_P_H_INCLUDED
@ -53,7 +53,7 @@ char *irs_irp_read_body(struct irp_p *pvt, size_t *size);
int irs_irp_get_full_response(struct irp_p *pvt, int *code,
char *text, size_t textlen,
char **body, size_t *bodylen);
int irs_irp_send_command(struct irp_p *pvt, const char *fmt, ...);
int irs_irp_send_command(struct irp_p *pvt, const char *fmt, ...) ISC_FORMAT_PRINTF(2, 3);
extern int irp_log_errors;

View file

@ -128,4 +128,11 @@ struct timezone; /* silence warning */
@SOLARIS_BITTYPES@
@ISC_SOCKLEN_T@
#ifdef __GNUC__
#define ISC_FORMAT_PRINTF(fmt, args) \
__attribute__((__format__(__printf__, fmt, args)))
#else
#define ISC_FORMAT_PRINTF(fmt, args)
#endif
#endif

View file

@ -1,5 +1,5 @@
#if !defined(lint) && !defined(SABER)
static const char rcsid[] = "$Id: res_findzonecut.c,v 1.2.2.1 2002/07/10 05:15:22 marka Exp $";
static const char rcsid[] = "$Id: res_findzonecut.c,v 1.2.2.2 2002/07/11 23:32:35 marka Exp $";
#endif /* not lint */
/*
@ -82,7 +82,7 @@ static void free_nsrr(rrset_ns *, rr_ns *);
static rr_ns * find_ns(rrset_ns *, const char *);
static int do_query(res_state, const char *, ns_class, ns_type,
u_char *, ns_msg *);
static void res_dprintf(const char *, ...);
static void res_dprintf(const char *, ...) ISC_FORMAT_PRINTF(1, 2);
/* Macros. */