aboutsummaryrefslogtreecommitdiffstats
path: root/log.h
diff options
context:
space:
mode:
authorverdant <im@verdant.ee>2026-07-27 20:40:33 +0800
committerverdant <im@verdant.ee>2026-07-27 20:40:33 +0800
commit858dc29b751531f92c285c990206083b89790de2 (patch)
treeca3a351597e2db497de65b35d14e3dc63cb85584 /log.h
parentabda1e9883555734f41c7a12e464b13a72c37a6d (diff)
downloadsf-858dc29b751531f92c285c990206083b89790de2.tar.gz
sf-858dc29b751531f92c285c990206083b89790de2.zip
Fix -Wmissing-prototypes warnings
Diffstat (limited to 'log.h')
-rw-r--r--log.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/log.h b/log.h
index 9b5dae1..0b5a6ab 100644
--- a/log.h
+++ b/log.h
@@ -1,6 +1,8 @@
#ifndef SS_LOG_H
#define SS_LOG_H
+#include <stdio.h>
+
#define LOG_FILEPATH "./log"
typedef enum {
@@ -13,6 +15,7 @@ void log_init(void);
void log_write(log_level level, const char *fmt, ...);
+void log_end(FILE *log_file);
#define LOG_WRITE_INFO(fmt, ...) log_write(LOG_INFO, fmt, ##__VA_ARGS__)
#endif /* SS_LOG_H */