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

Diff for /src/usr.bin/ssh/misc.c between version 1.84 and 1.85

version 1.84, 2010/11/21 01:01:13 version 1.85, 2011/03/29 18:54:17
Line 964 
Line 964 
         return val;          return val;
 }  }
   
   const char *
   iptos2str(int iptos)
   {
           int i;
           static char iptos_str[sizeof "0xff"];
   
           for (i = 0; ipqos[i].name != NULL; i++) {
                   if (ipqos[i].value == iptos)
                           return ipqos[i].name;
           }
           snprintf(iptos_str, sizeof iptos_str, "0x%02x", iptos);
           return iptos_str;
   }

Legend:
Removed from v.1.84  
changed lines
  Added in v.1.85