diff options
author | tron <tron> | 2010-01-09 19:44:05 +0000 |
---|---|---|
committer | tron <tron> | 2010-01-09 19:44:05 +0000 |
commit | acc7fa8dd011491e8984948dd822d57817b58279 (patch) | |
tree | a7132c8066079f3e1c2b3d6e9b596f0af7d4362f /net/mtr/patches | |
parent | b962d7862ac134e8a6a5f5e19964769a7a9d3b28 (diff) | |
download | pkgsrc-acc7fa8dd011491e8984948dd822d57817b58279.tar.gz |
Remove a bogus cast which breaks the build with Sun Studio C.
While here set the license to "gnu-gpl-v2".
Diffstat (limited to 'net/mtr/patches')
-rw-r--r-- | net/mtr/patches/patch-ac | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/net/mtr/patches/patch-ac b/net/mtr/patches/patch-ac new file mode 100644 index 00000000000..4ac8f79e307 --- /dev/null +++ b/net/mtr/patches/patch-ac @@ -0,0 +1,15 @@ +$NetBSD: patch-ac,v 1.5 2010/01/09 19:44:05 tron Exp $ + +Remove bogus cast which breaks the build with Sun Studio C. + +--- net.c.orig 2008-09-19 10:37:57.000000000 +0100 ++++ net.c 2010-01-09 19:34:47.000000000 +0000 +@@ -1205,7 +1205,7 @@ + switch ( saddr->sa_family ) { + case AF_INET: + sa4 = (struct sockaddr_in *) saddr; +- strncpy( strptr, inet_ntoa( (struct in_addr) sa4->sin_addr ), len - 1 ); ++ strncpy( strptr, inet_ntoa( sa4->sin_addr ), len - 1 ); + strptr[ len - 1 ] = '\0'; + return; + #ifdef ENABLE_IPV6 |