--- lbbs/src/editor.c 2025/06/16 14:30:44 1.26 +++ lbbs/src/editor.c 2025/06/17 13:17:04 1.28 @@ -14,8 +14,6 @@ * * ***************************************************************************/ -#define _POSIX_C_SOURCE 200809L - #include "editor.h" #include "bbs.h" #include "io.h" @@ -708,7 +706,7 @@ int editor_display(EDITOR_DATA *p_editor if ((ch >= 32 && ch < 127) || (ch > 127 && ch <= 255 && str_len == 2) || // Printable character or GBK ch == CR || ch == KEY_ESC) // Special character { - BBS_last_access_tm = time(0); + BBS_last_access_tm = time(NULL); if (str_len == 0) // ch >= 32 && ch < 127 { @@ -784,7 +782,7 @@ int editor_display(EDITOR_DATA *p_editor } else if (ch == KEY_DEL || ch == BACKSPACE) // Del { - BBS_last_access_tm = time(0); + BBS_last_access_tm = time(NULL); if (ch == BACKSPACE) { @@ -1061,7 +1059,7 @@ int editor_display(EDITOR_DATA *p_editor break; } - BBS_last_access_tm = time(0); + BBS_last_access_tm = time(NULL); if (input_ok) {