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

Diff of /lbbs/src/log.c

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

Revision 1.33 by sysadm, Sun Nov 16 02:05:07 2025 UTC Revision 1.34 by sysadm, Mon Nov 17 11:17:37 2025 UTC
# Line 41  int log_begin(const char *common_log_fil Line 41  int log_begin(const char *common_log_fil
41          fp_common_log = fopen(path_common_log, "a");          fp_common_log = fopen(path_common_log, "a");
42          if (fp_common_log == NULL)          if (fp_common_log == NULL)
43          {          {
44                  perror("log_begin(common_log) failed\n");                  fprintf(stderr, "fopen(%s) error\n", path_common_log);
45                  return -1;                  return -1;
46          }          }
47    
48          fp_error_log = fopen(path_error_log, "a");          fp_error_log = fopen(path_error_log, "a");
49          if (fp_error_log == NULL)          if (fp_error_log == NULL)
50          {          {
51                  perror("log_begin(error_log) failed\n");                  fprintf(stderr, "fopen(%s) error\n", path_error_log);
52                  return -2;                  return -2;
53          }          }
54    


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

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