/[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.68 by sysadm, Tue May 20 08:24:28 2025 UTC Revision 1.69 by sysadm, Sun May 25 06:55:23 2025 UTC
# Line 241  int display_file_ex(const char *filename Line 241  int display_file_ex(const char *filename
241          long int percentile;          long int percentile;
242          int loop;          int loop;
243    
244          if ((p_shm = get_file_shm(filename, &data_len, &line_total, &p_data, &p_line_offsets)) == NULL)          if ((p_shm = get_file_shm_readonly(filename, &data_len, &line_total, &p_data, &p_line_offsets)) == NULL)
245          {          {
246                  log_error("get_file_shm(%s) error\n", filename);                  log_error("get_file_shm(%s) error\n", filename);
247                  return KEY_NULL;                  return KEY_NULL;
# Line 419  int display_file_ex(const char *filename Line 419  int display_file_ex(const char *filename
419          }          }
420    
421  cleanup:  cleanup:
422            if (detach_file_shm(p_shm) < 0)
423            {
424                    log_error("detach_file_shm(%s) error\n", filename);
425            }
426    
427          return ch;          return ch;
428  }  }
429    
# Line 509  int show_active_board() Line 514  int show_active_board()
514    
515          if (p_shm == NULL)          if (p_shm == NULL)
516          {          {
517                  if ((p_shm = get_file_shm(DATA_ACTIVE_BOARD, &data_len, &line_total, &p_data, &p_line_offsets)) == NULL)                  if ((p_shm = get_file_shm_readonly(DATA_ACTIVE_BOARD, &data_len, &line_total, &p_data, &p_line_offsets)) == NULL)
518                  {                  {
519                          log_error("get_file_shm(%s) error\n", DATA_ACTIVE_BOARD);                          log_error("get_file_shm(%s) error\n", DATA_ACTIVE_BOARD);
520                          return KEY_NULL;                          return KEY_NULL;


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

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