Skip to content

Commit

Permalink
Remove a bogus cast which breaks the build with Sun Studio C.
Browse files Browse the repository at this point in the history
While here set the license to "gnu-gpl-v2".
  • Loading branch information
tron committed Jan 9, 2010
1 parent 9c9996e commit 0301750
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
3 changes: 2 additions & 1 deletion net/mtr/Makefile
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.56 2009/09/12 22:07:56 tron Exp $
# $NetBSD: Makefile,v 1.57 2010/01/09 19:44:05 tron Exp $

DISTNAME= mtr-0.75
CATEGORIES= net
Expand All @@ -8,6 +8,7 @@ PKGREVISION= 2
MAINTAINER= sommerfeld@NetBSD.org
HOMEPAGE= http://www.bitwizard.nl/mtr/
COMMENT= Traceroute and ping in a single graphical network diagnostic tool
LICENSE= gnu-gpl-v2

PKG_INSTALLATION_TYPES= overwrite pkgviews
PKG_DESTDIR_SUPPORT= user-destdir
Expand Down
3 changes: 2 additions & 1 deletion net/mtr/distinfo
@@ -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
15 changes: 15 additions & 0 deletions 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

0 comments on commit 0301750

Please sign in to comment.