Magellan Linux

Diff of /trunk/mkinitrd-magellan/busybox/libbb/xatonum.c

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

revision 815 by niro, Sat Sep 1 22:45:15 2007 UTC revision 816 by niro, Fri Apr 24 18:33:46 2009 UTC
# Line 34  Line 34 
34  #endif  #endif
35    
36  #if UINT_MAX != ULONG_MAX  #if UINT_MAX != ULONG_MAX
37  static ATTRIBUTE_ALWAYS_INLINE  static ALWAYS_INLINE
38  unsigned bb_strtoui(const char *str, char **end, int b)  unsigned bb_strtoui(const char *str, char **end, int b)
39  {  {
40   unsigned long v = strtoul(str, end, b);   unsigned long v = strtoul(str, end, b);
# Line 59  unsigned bb_strtoui(const char *str, cha Line 59  unsigned bb_strtoui(const char *str, cha
59    
60  /* A few special cases */  /* A few special cases */
61    
62  int xatoi_u(const char *numstr)  int FAST_FUNC xatoi_u(const char *numstr)
63  {  {
64   return xatou_range(numstr, 0, INT_MAX);   return xatou_range(numstr, 0, INT_MAX);
65  }  }
66    
67  uint16_t xatou16(const char *numstr)  uint16_t FAST_FUNC xatou16(const char *numstr)
68  {  {
69   return xatou_range(numstr, 0, 0xffff);   return xatou_range(numstr, 0, 0xffff);
70  }  }

Legend:
Removed from v.815  
changed lines
  Added in v.816