Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove a bogus cast which breaks the build with Sun Studio C.
While here set the license to "gnu-gpl-v2".
- Loading branch information
tron
committed
Jan 9, 2010
1 parent
9c9996e
commit 0301750
Showing
3 changed files
with
19 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
$NetBSD: distinfo,v 1.26 2008/11/05 19:58:25 wiz Exp $ | ||
$NetBSD: distinfo,v 1.27 2010/01/09 19:44:05 tron Exp $ | ||
|
||
SHA1 (mtr-0.75.tar.gz) = d9d3f849e32dda8aa5a7a297c25053e5d8504b27 | ||
RMD160 (mtr-0.75.tar.gz) = d7df41c0c9b457eeff4034c9bc2f01456b8f6c68 | ||
Size (mtr-0.75.tar.gz) = 179376 bytes | ||
SHA1 (patch-aa) = 844cfa989ee103f3dbc3c1c96a7d631496a251a9 | ||
SHA1 (patch-ab) = 09ad79840272c6e3dc1cad74a3349a0ab6bfee40 | ||
SHA1 (patch-ac) = 50fcafe1a0de3f285036882c79fdf61e03fbc045 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |