1
0
Fork 0
mirror of https://passt.top/passt synced 2025-06-07 08:25:34 +02:00

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>
This commit is contained in:
David Gibson 2024-07-29 14:22:59 +10:00 committed by Stefano Brivio
parent f30ed68c52
commit a5bbefa6fb
2 changed files with 176 additions and 176 deletions

1
log.h
View file

@ -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 */