Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/dhcp/dist/includes use __sysloglike where appro...



details:   https://anonhg.NetBSD.org/src/rev/8dcd2be73485
branches:  trunk
changeset: 341015:8dcd2be73485
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Oct 14 15:58:46 2015 +0000

description:
use __sysloglike where appropriate.

diffstat:

 external/bsd/dhcp/dist/includes/dhcpd.h           |   5 ++---
 external/bsd/dhcp/dist/includes/omapip/omapip_p.h |  14 +++++---------
 2 files changed, 7 insertions(+), 12 deletions(-)

diffs (47 lines):

diff -r 29be34043054 -r 8dcd2be73485 external/bsd/dhcp/dist/includes/dhcpd.h
--- a/external/bsd/dhcp/dist/includes/dhcpd.h   Wed Oct 14 15:58:08 2015 +0000
+++ b/external/bsd/dhcp/dist/includes/dhcpd.h   Wed Oct 14 15:58:46 2015 +0000
@@ -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 @@
                        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);
 
 
diff -r 29be34043054 -r 8dcd2be73485 external/bsd/dhcp/dist/includes/omapip/omapip_p.h
--- a/external/bsd/dhcp/dist/includes/omapip/omapip_p.h Wed Oct 14 15:58:08 2015 +0000
+++ b/external/bsd/dhcp/dist/includes/omapip/omapip_p.h Wed Oct 14 15:58:46 2015 +0000
@@ -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_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);



Home | Main Index | Thread Index | Old Index