[BACK]Return to log.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/log.c between version 1.40 and 1.41

version 1.40, 2007/05/17 07:50:31 version 1.41, 2008/06/10 04:50:25
Line 104 
Line 104 
         return SYSLOG_FACILITY_NOT_SET;          return SYSLOG_FACILITY_NOT_SET;
 }  }
   
   const char *
   log_facility_name(SyslogFacility facility)
   {
           u_int i;
   
           for (i = 0;  log_facilities[i].name; i++)
                   if (log_facilities[i].val == facility)
                           return log_facilities[i].name;
           return NULL;
   }
   
 LogLevel  LogLevel
 log_level_number(char *name)  log_level_number(char *name)
 {  {
Line 114 
Line 125 
                         if (strcasecmp(log_levels[i].name, name) == 0)                          if (strcasecmp(log_levels[i].name, name) == 0)
                                 return log_levels[i].val;                                  return log_levels[i].val;
         return SYSLOG_LEVEL_NOT_SET;          return SYSLOG_LEVEL_NOT_SET;
   }
   
   const char *
   log_level_name(LogLevel level)
   {
           u_int i;
   
           for (i = 0; log_levels[i].name != NULL; i++)
                   if (log_levels[i].val == level)
                           return log_levels[i].name;
           return NULL;
 }  }
   
 /* Error messages that should be logged. */  /* Error messages that should be logged. */

Legend:
Removed from v.1.40  
changed lines
  Added in v.1.41