--- lbbs/src/menu_proc.c 2025/06/01 03:07:42 1.22 +++ lbbs/src/menu_proc.c 2025/06/16 14:30:44 1.25 @@ -14,6 +14,8 @@ * * ***************************************************************************/ +#define _POSIX_C_SOURCE 200809L + #include "bbs.h" #include "bbs_cmd.h" #include "common.h" @@ -27,9 +29,9 @@ #include #include #include -#include #include #include +#include int list_section(void *param) { @@ -93,14 +95,14 @@ int exit_bbs(void *param) int license(void *param) { - display_file(DATA_LICENSE, 1, 0); + display_file(DATA_LICENSE, 0); return REDRAW; } int copyright(void *param) { - display_file(DATA_COPYRIGHT, 1, 1); + display_file(DATA_COPYRIGHT, 1); return REDRAW; } @@ -127,7 +129,7 @@ int reload_bbs_conf(void *param) int shutdown_bbs(void *param) { - log_std("Notify main process to exit\n"); + log_common("Notify main process to exit\n"); if (kill(getppid(), SIGTERM) < 0) {