Module Name: src
Committed By: christos
Date: Mon Mar 2 14:18:50 UTC 2020
Modified Files:
src/lib/libc/gen: syslog_private.h
Log Message:
fix print-like attrs
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/lib/libc/gen/syslog_private.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libc/gen/syslog_private.h
diff -u src/lib/libc/gen/syslog_private.h:1.2 src/lib/libc/gen/syslog_private.h:1.3
--- src/lib/libc/gen/syslog_private.h:1.2 Wed Jan 11 20:58:39 2017
+++ src/lib/libc/gen/syslog_private.h Mon Mar 2 09:18:50 2020
@@ -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 *);