Magellan Linux

Diff of /trunk/mkinitrd-magellan/busybox/networking/libiproute/ll_types.c

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

revision 983 by niro, Fri Apr 24 18:33:46 2009 UTC revision 984 by niro, Sun May 30 11:32:42 2010 UTC
# Line 15  Line 15 
15  #include "libbb.h"  #include "libbb.h"
16  #include "rt_names.h"  #include "rt_names.h"
17    
18  const char *ll_type_n2a(int type, char *buf, int len)  const char* FAST_FUNC ll_type_n2a(int type, char *buf)
19  {  {
20   static const char arphrd_name[] =   static const char arphrd_name[] =
21   /* 0,                  */ "generic" "\0"   /* 0,                  */ "generic" "\0"
# Line 200  const char *ll_type_n2a(int type, char * Line 200  const char *ll_type_n2a(int type, char *
200   return aname;   return aname;
201   aname += strlen(aname) + 1;   aname += strlen(aname) + 1;
202   }   }
203   snprintf(buf, len, "[%d]", type);   sprintf(buf, "[%d]", type);
204   return buf;   return buf;
205  }  }

Legend:
Removed from v.983  
changed lines
  Added in v.984