--- lbbs/src/common.c 2025/04/28 03:30:59 1.9 +++ lbbs/src/common.c 2025/04/30 09:18:19 1.11 @@ -15,7 +15,10 @@ * * ***************************************************************************/ +#include "common.h" +#include "log.h" #include "menu.h" +#include #include #include #include @@ -40,14 +43,14 @@ char DB_host[256]; char DB_username[50]; char DB_password[50]; char DB_database[50]; +char DB_timezone[50]; // Global declaration for system int SYS_exit; int SYS_child_process_count; // Common function -const char * -str_space(char *string, int length) +const char *str_space(char *string, int length) { int i; for (i = 0; i < length; i++) @@ -58,8 +61,7 @@ str_space(char *string, int length) return string; } -const char * -get_time_str(char *string, size_t length) +const char *get_time_str(char *string, size_t length) { char week[10], buffer[256]; time_t curtime;