Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/gen fix print-like attrs



details:   https://anonhg.NetBSD.org/src/rev/e1f4ffbd9cbc
branches:  trunk
changeset: 1007849:e1f4ffbd9cbc
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Mar 02 14:18:50 2020 +0000

description:
fix print-like attrs

diffstat:

 lib/libc/gen/syslog_private.h |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (26 lines):

diff -r baaa9dd9fc48 -r e1f4ffbd9cbc lib/libc/gen/syslog_private.h
--- a/lib/libc/gen/syslog_private.h     Mon Mar 02 14:10:24 2020 +0000
+++ b/lib/libc/gen/syslog_private.h     Mon Mar 02 14:18:50 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: syslog_private.h,v 1.2 2017/01/12 01:58:39 christos Exp $      */
+/*     $NetBSD: syslog_private.h,v 1.3 2020/03/02 14:18:50 christos Exp $      */
 
 /*-
  * Copyright (c) 2016 The NetBSD Foundation, Inc.
@@ -40,13 +40,13 @@
 struct syslog_fun {
        size_t (*timefun)(char *, size_t);
        int  (*errfun)(int, char *, size_t);
-       int __printflike(3, 0) (*prfun)(char *, size_t, const char *, va_list);
+       int __sysloglike(3, 0) (*prfun)(char *, size_t, const char *, va_list);
        int (*lock)(const struct syslog_data *);
        int (*unlock)(const struct syslog_data *);
 };
 
-void _vxsyslogp_r(int , struct syslog_fun *, struct syslog_data *,
-    const char *, const char *, const char *, va_list);
+void _vxsyslogp_r(int, struct syslog_fun *, struct syslog_data *,
+    const char *, const char *, const char *, va_list) __sysloglike(6, 0);
 void _openlog_unlocked_r(const char *, int, int, struct syslog_data *);
 void _closelog_unlocked_r(struct syslog_data *);
 



Home | Main Index | Thread Index | Old Index