Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/gen Add sysloglike attr.



details:   https://anonhg.NetBSD.org/src/rev/2ac0cd5782a6
branches:  trunk
changeset: 1007852:2ac0cd5782a6
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Mar 02 15:30:25 2020 +0000

description:
Add sysloglike attr.

diffstat:

 lib/libc/gen/xsyslog.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 1065a8aef056 -r 2ac0cd5782a6 lib/libc/gen/xsyslog.c
--- a/lib/libc/gen/xsyslog.c    Mon Mar 02 15:23:17 2020 +0000
+++ b/lib/libc/gen/xsyslog.c    Mon Mar 02 15:30:25 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: xsyslog.c,v 1.6 2020/03/02 14:10:24 christos Exp $     */
+/*     $NetBSD: xsyslog.c,v 1.7 2020/03/02 15:30:25 christos Exp $     */
 
 /*
  * Copyright (c) 1983, 1988, 1993
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)syslog.c   8.5 (Berkeley) 4/29/95";
 #else
-__RCSID("$NetBSD: xsyslog.c,v 1.6 2020/03/02 14:10:24 christos Exp $");
+__RCSID("$NetBSD: xsyslog.c,v 1.7 2020/03/02 15:30:25 christos Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -124,7 +124,7 @@
        data->log_connected = 0;
 }
 
-static void
+static __sysloglike(6, 7) void
 _xsyslogp_r(int pri, struct syslog_fun *fun,
     struct syslog_data *data, const char *msgid,
     const char *sdfmt, const char *msgfmt, ...)



Home | Main Index | Thread Index | Old Index