--- a/log.h
+++ b/log.h
@@ -45,6 +45,7 @@
 
 extern int log_level[L_MAX];
 extern int log_init(const char *fname, const char *debug);
+extern void log_close(void);
 extern void log_err(int level, enum _log_facility facility, char *fname, int lineno, char *fmt, ...);
 
 #define DPRINTF(level, facility, fmt, arg...) do { log_err(level, facility, __FILE__, __LINE__, fmt, ##arg); } while (0)