/[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.2 by sysadm, Tue Oct 19 02:08:35 2004 UTC Revision 1.4 by sysadm, Tue Oct 19 17:11:39 2004 UTC
# Line 34  log_begin (char *file_log_std, char *fil Line 34  log_begin (char *file_log_std, char *fil
34    if (fp_log_err == NULL)    if (fp_log_err == NULL)
35      {      {
36        perror ("log_begin failed\n");        perror ("log_begin failed\n");
37        return -1;        return -2;
38      }      }
39    
40    return 0;    return 0;
# Line 72  log_std (char *msg) Line 72  log_std (char *msg)
72      }      }
73    
74    log_head(buf);    log_head(buf);
75    
76    strcat(buf,msg);    strcat(buf,msg);
77        
78    if (fprintf (fp_log_std, buf)<0)    if (fprintf (fp_log_std, buf)<0)
# Line 97  log_error (char *error_msg) Line 98  log_error (char *error_msg)
98      }      }
99    
100    log_head(buf);    log_head(buf);
101    
102    strcat(buf,error_msg);    strcat(buf,error_msg);
103    
104    if (fprintf (fp_log_err, buf)<0)    if (fprintf (fp_log_err, buf)<0)


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

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