/[anubis]/anubis/src/errs.c
ViewVC logotype

Diff of /anubis/src/errs.c

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

revision 1.1.1.1 by polak, Thu Jan 30 10:41:06 2003 UTC revision 1.2 by polak, Fri Feb 28 20:45:05 2003 UTC
# Line 32  anubis_error(int method, char *format, . Line 32  anubis_error(int method, char *format, .
32          char txt[LINEBUFFER+1];          char txt[LINEBUFFER+1];
33    
34          va_start(arglist, format);          va_start(arglist, format);
35          #ifdef HAVE_VSNPRINTF  #ifdef HAVE_VSNPRINTF
36          vsnprintf(txt, LINEBUFFER,          vsnprintf(txt, LINEBUFFER,
37          #else  #else
38          vsprintf(txt,          vsprintf(txt,
39          #endif /* HAVE_VSNPRINTF */  #endif /* HAVE_VSNPRINTF */
40                  format, arglist);                  format, arglist);
41          va_end(arglist);          va_end(arglist);
42    
# Line 46  anubis_error(int method, char *format, . Line 46  anubis_error(int method, char *format, .
46                  topt &= ~T_ERROR;                  topt &= ~T_ERROR;
47    
48          if (options.termlevel != SILENT) {          if (options.termlevel != SILENT) {
49                  #ifdef HAVE_SYSLOG  #ifdef HAVE_SYSLOG
50                  if ((topt & T_DAEMON) && !(topt & T_FOREGROUND)) {                  if ((topt & T_DAEMON) && !(topt & T_FOREGROUND)) {
51                          if (options.slogfile)                          if (options.slogfile)
52                                  filelog(options.slogfile, txt);                                  filelog(options.slogfile, txt);
# Line 57  anubis_error(int method, char *format, . Line 57  anubis_error(int method, char *format, .
57                                  filelog(options.ulogfile, txt);                                  filelog(options.ulogfile, txt);
58                  }                  }
59                  else                  else
60                  #endif /* HAVE_SYSLOG */  #endif /* HAVE_SYSLOG */
61                          if (topt & T_FOREGROUND)                          if (topt & T_FOREGROUND)
62                                  mprintf(">>[%d] %s", (int)getpid(), txt);                                  mprintf(">>[%d] %s", (int)getpid(), txt);
63                          else                          else

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26