update Sat Jan 9 12:37:00 PST 2010
[pkgsrc.git] / net / mtr / patches / patch-ac
1 $NetBSD: patch-ac,v 1.5 2010/01/09 19:44:05 tron Exp $
2
3 Remove bogus cast which breaks the build with Sun Studio C.
4
5 --- net.c.orig  2008-09-19 10:37:57.000000000 +0100
6 +++ net.c       2010-01-09 19:34:47.000000000 +0000
7 @@ -1205,7 +1205,7 @@
8    switch ( saddr->sa_family ) {
9    case AF_INET:
10      sa4 = (struct sockaddr_in *) saddr;
11 -    strncpy( strptr, inet_ntoa( (struct in_addr) sa4->sin_addr ), len - 1 );
12 +    strncpy( strptr, inet_ntoa( sa4->sin_addr ), len - 1 );
13      strptr[ len - 1 ] = '\0';
14      return;
15  #ifdef ENABLE_IPV6