/[pengfork]/pengfork/src/log.c
ViewVC logotype

Diff of /pengfork/src/log.c

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

revision 1.13 by chupa, Sun Dec 1 01:19:07 2002 UTC revision 1.14 by chupa, Tue Dec 3 18:38:15 2002 UTC
# Line 31  Line 31 
31  #include "log.h"  #include "log.h"
32  #include "options.h"  #include "options.h"
33    
34    int daemonized = 0;
35    
36  int  int
37  init_log (void)  init_log (void)
38  {  {
# Line 45  init_log (void) Line 47  init_log (void)
47  }  }
48    
49  int  int
50    log_daemon(void)
51    {
52      daemonized=1;
53      return 1;
54    }
55    
56    int
57  log (int level, char *format, ...)  log (int level, char *format, ...)
58  {  {
59    char line[1024];    char line[1024];
60    va_list ap;    va_list ap;
61    va_start (ap, format);    va_start (ap, format);
62    
63    if (!PARAM_DAEMON)    if (!daemonized)
64      switch (level)      switch (level)
65        {        {
66        case LOG_EMERG:        case LOG_EMERG:

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

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