/[LeafOK_CVS]/lbbs/src/screen.c
ViewVC logotype

Diff of /lbbs/src/screen.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.98 by sysadm, Mon Jun 16 14:30:44 2025 UTC Revision 1.100 by sysadm, Tue Jun 17 13:18:55 2025 UTC
# Line 14  Line 14 
14   *                                                                         *   *                                                                         *
15   ***************************************************************************/   ***************************************************************************/
16    
 #define _POSIX_C_SOURCE 200809L  
   
17  #include "screen.h"  #include "screen.h"
18  #include "bbs.h"  #include "bbs.h"
19  #include "common.h"  #include "common.h"
# Line 431  int display_data(const void *p_data, lon Line 429  int display_data(const void *p_data, lon
429                                          break;                                          break;
430                                  }                                  }
431    
432                                  BBS_last_access_tm = time(0);                                  BBS_last_access_tm = time(NULL);
433                          }                          }
434    
435                          continue;                          continue;
# Line 565  int show_bottom(const char *msg) Line 563  int show_bottom(const char *msg)
563    
564          len_username = (int)strnlen(BBS_username, sizeof(BBS_username));          len_username = (int)strnlen(BBS_username, sizeof(BBS_username));
565    
566          time_online = time(0) - BBS_login_tm;          time_online = time(NULL) - BBS_login_tm;
567          tm_online = gmtime(&time_online);          tm_online = gmtime(&time_online);
568          if (tm_online->tm_mday > 1)          if (tm_online->tm_mday > 1)
569          {          {
# Line 612  int show_active_board() Line 610  int show_active_board()
610                  }                  }
611          }          }
612    
613          if (time(0) - t_last_show >= 10)          if (time(NULL) - t_last_show >= 10)
614          {          {
615                  line_last = line_current;                  line_last = line_current;
616                  t_last_show = time(0);                  t_last_show = time(NULL);
617          }          }
618          else          else
619          {          {


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1