aboutgitcodebugslistschat
path: root/log.h
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2024-07-29 14:22:59 +1000
committerStefano Brivio <sbrivio@redhat.com>2024-08-05 15:03:33 +0200
commita5bbefa6fb799ba009b9704bb440e22778cd5d51 (patch)
treed17e783ddff0101e0ed0b4a46b49c60df8a2dc8b /log.h
parentf30ed68c52734b549304f808b780972f93b0515d (diff)
downloadpasst-a5bbefa6fb799ba009b9704bb440e22778cd5d51.tar
passt-a5bbefa6fb799ba009b9704bb440e22778cd5d51.tar.gz
passt-a5bbefa6fb799ba009b9704bb440e22778cd5d51.tar.bz2
passt-a5bbefa6fb799ba009b9704bb440e22778cd5d51.tar.lz
passt-a5bbefa6fb799ba009b9704bb440e22778cd5d51.tar.xz
passt-a5bbefa6fb799ba009b9704bb440e22778cd5d51.tar.zst
passt-a5bbefa6fb799ba009b9704bb440e22778cd5d51.zip
log: Make logfile_write() private
logfile_write() is not used outside log.c, nor should it be. It should only be used externall via the general logging functions. Make it static in log.c. To avoid forward declarations this requires moving a bunch of functions earlier in the file. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'log.h')
-rw-r--r--log.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/log.h b/log.h
index e03199c..5cb16d6 100644
--- a/log.h
+++ b/log.h
@@ -56,7 +56,6 @@ void trace_init(int enable);
void __openlog(const char *ident, int option, int facility);
void logfile_init(const char *name, const char *path, size_t size);
void passt_vsyslog(bool newline, int pri, const char *format, va_list ap);
-void logfile_write(bool newline, int pri, const char *format, va_list ap);
void __setlogmask(int mask);
#endif /* LOG_H */