瀏覽代碼

qdevice: Add prototype of __vsyslog_chk

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
Jan Friesse 6 年之前
父節點
當前提交
b82970cbff
共有 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 closelog_called;
 
+extern void __vsyslog_chk(int priority, int flag, const char *format, va_list ap)
+    __attribute__((__format__(__printf__, 3, 0)));
+
 void
 openlog(const char *ident, int option, int facility)
 {