Просмотр исходного кода

qdevice: Add prototype of __vsyslog_chk

Signed-off-by: Jan Friesse <jfriesse@redhat.com>

(cherry picked from corosync-qdevice project commit
 b82970cbff3adea309c62eca3d4b9e34543c6619)
Jan Friesse 6 лет назад
Родитель
Сommit
973a4e265f
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      qdevices/test-log.c

+ 3 - 0
qdevices/test-log.c

@@ -48,6 +48,9 @@ static int vsyslog_priority;
 static int vsyslog_called;
 static int vsyslog_called;
 static int closelog_called;
 static int closelog_called;
 
 
+extern void __vsyslog_chk(int priority, int flag, const char *format, va_list ap)
+    __attribute__((__format__(__printf__, 3, 0)));
+
 void
 void
 openlog(const char *ident, int option, int facility)
 openlog(const char *ident, int option, int facility)
 {
 {