use __sysloglike where appropriate.

This commit is contained in:
christos 2015-10-14 15:58:46 +00:00
parent 9fa485335a
commit 4860ae3db5
2 changed files with 7 additions and 12 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: dhcpd.h,v 1.6 2014/07/12 12:09:37 spz Exp $ */
/* $NetBSD: dhcpd.h,v 1.7 2015/10/14 15:58:46 christos Exp $ */
/* dhcpd.h
Definitions for dhcpd... */
@ -2092,8 +2092,7 @@ int parse_option_token (struct expression **, struct parse *,
const char **, struct expression *, int, int);
int parse_allow_deny (struct option_cache **, struct parse *, int);
int parse_auth_key (struct data_string *, struct parse *);
int parse_warn (struct parse *, const char *, ...)
__attribute__((__format__(__printf__,2,3)));
int parse_warn (struct parse *, const char *, ...) __sysloglike(2, 3);
struct expression *parse_domain_list(struct parse *cfile, int);

View File

@ -1,4 +1,4 @@
/* $NetBSD: omapip_p.h,v 1.1.1.4 2014/07/12 11:57:57 spz Exp $ */
/* $NetBSD: omapip_p.h,v 1.2 2015/10/14 15:58:46 christos Exp $ */
/* omapip_p.h
Private master include file for the OMAPI library. */
@ -283,14 +283,10 @@ extern int log_priority;
extern int log_perror;
extern void (*log_cleanup) (void);
void log_fatal (const char *, ...)
__attribute__((__format__(__printf__,1,2))) ISC_DHCP_NORETURN;
int log_error (const char *, ...)
__attribute__((__format__(__printf__,1,2)));
int log_info (const char *, ...)
__attribute__((__format__(__printf__,1,2)));
int log_debug (const char *, ...)
__attribute__((__format__(__printf__,1,2)));
void log_fatal (const char *, ...) __sysloglike(1, 2) ISC_DHCP_NORETURN;
int log_error (const char *, ...) __sysloglike(1, 2);
int log_info (const char *, ...) __sysloglike(1, 2);
int log_debug (const char *, ...) __sysloglike(1, 2);
void do_percentm (char *obuf, const char *ibuf);
isc_result_t uerr2isc (int);