Author: tjansen Date: Wed Oct 28 12:42:56 2009 New Revision: 1368 Log: Removed unused functions pisa_in6_ntop{,2}. Modified: trunk/libpisa/util.c Modified: trunk/libpisa/util.c ============================================================================== --- trunk/libpisa/util.c Wed Oct 28 12:40:36 2009 (r1367) +++ trunk/libpisa/util.c Wed Oct 28 12:42:56 2009 (r1368) @@ -183,31 +183,6 @@ } } -char* pisa_in6_ntop(const struct in6_addr *in6, char *buf){ - if (!buf) - return NULL; - sprintf(buf, - "%04x:%04x:%04x:%04x:%04x:%04x:%04x:%04x", - ntohs(in6->s6_addr16[0]), ntohs(in6->s6_addr16[1]), - ntohs(in6->s6_addr16[2]), ntohs(in6->s6_addr16[3]), - ntohs(in6->s6_addr16[4]), ntohs(in6->s6_addr16[5]), - ntohs(in6->s6_addr16[6]), ntohs(in6->s6_addr16[7])); - return buf; -} - - -int pisa_in6_ntop2(const struct in6_addr *in6, char *buf){ - if(!buf) - return 0; - return sprintf(buf, - "%04x:%04x:%04x:%04x:%04x:%04x:%04x:%04x", - ntohs(in6->s6_addr16[0]), ntohs(in6->s6_addr16[1]), - ntohs(in6->s6_addr16[2]), ntohs(in6->s6_addr16[3]), - ntohs(in6->s6_addr16[4]), ntohs(in6->s6_addr16[5]), - ntohs(in6->s6_addr16[6]), ntohs(in6->s6_addr16[7])); -} - - /** * pisa_enc_key_length - get encryption key length of a transform * @param tid transform