1 $NetBSD: patch-ac,v 1.5 2010/01/09 19:44:05 tron Exp $
3 Remove bogus cast which breaks the build with Sun Studio C.
5 --- net.c.orig 2008-09-19 10:37:57.000000000 +0100
6 +++ net.c 2010-01-09 19:34:47.000000000 +0000
8 switch ( saddr->sa_family ) {
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';