[BACK]Return to inet_net_ntop.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / lib / libc / inet

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/lib/libc/inet/inet_net_ntop.c between version 1.2 and 1.3

version 1.2, 2009/02/07 07:25:22 version 1.3, 2012/03/20 17:08:13
Line 49  __weak_alias(inet_net_ntop,_inet_net_nto
Line 49  __weak_alias(inet_net_ntop,_inet_net_nto
 # define SPRINTF(x) sprintf x  # define SPRINTF(x) sprintf x
 #endif  #endif
   
 static char *   inet_net_ntop_ipv4 __P((const u_char *src, int bits,  static char *   inet_net_ntop_ipv4(const u_char *src, int bits,
                                         char *dst, size_t size));                                          char *dst, size_t size);
 static char *   inet_net_ntop_ipv6 __P((const u_char *src, int bits,  static char *   inet_net_ntop_ipv6(const u_char *src, int bits,
                                         char *dst, size_t size));                                          char *dst, size_t size);
   
 /*  /*
  * char *   * char *
Line 65  static char * inet_net_ntop_ipv6 __P((co
Line 65  static char * inet_net_ntop_ipv6 __P((co
  *      Paul Vixie (ISC), July 1996   *      Paul Vixie (ISC), July 1996
  */   */
 char *  char *
 inet_net_ntop(af, src, bits, dst, size)  inet_net_ntop(int af, const void *src, int bits, char *dst, size_t size)
         int af;  
         const void *src;  
         int bits;  
         char *dst;  
         size_t size;  
 {  {
         switch (af) {          switch (af) {
         case AF_INET:          case AF_INET:
Line 97  inet_net_ntop(af, src, bits, dst, size)
Line 92  inet_net_ntop(af, src, bits, dst, size)
  *      Paul Vixie (ISC), July 1996   *      Paul Vixie (ISC), July 1996
  */   */
 static char *  static char *
 inet_net_ntop_ipv4(src, bits, dst, size)  inet_net_ntop_ipv4(const u_char *src, int bits, char *dst, size_t size)
         const u_char *src;  
         int bits;  
         char *dst;  
         size_t size;  
 {  {
         char *odst = dst;          char *odst = dst;
         char *t;          char *t;
Line 176  inet_net_ntop_ipv4(src, bits, dst, size)
Line 167  inet_net_ntop_ipv4(src, bits, dst, size)
  */   */
   
 static char *  static char *
 inet_net_ntop_ipv6(const u_char *src, int bits, char *dst, size_t size) {  inet_net_ntop_ipv6(const u_char *src, int bits, char *dst, size_t size)
   {
         u_int   m;          u_int   m;
         int     b;          int     b;
         size_t  p;          size_t  p;

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

CVSweb <webmaster@jp.NetBSD.org>