summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-06-08 10:57:02 +0000
committerMike Frysinger <vapier@gentoo.org>2006-06-08 10:57:02 +0000
commit792a16f52ede20bf0dd312f3298f6cee9f215a35 (patch)
tree25a0c0884efac236dd2a14aea5b2d7b68de00c85 /net-misc/iputils
parentdeprecated 'xml2' use flag removed (use 'xml' instead) (diff)
downloadgentoo-2-792a16f52ede20bf0dd312f3298f6cee9f215a35.tar.gz
gentoo-2-792a16f52ede20bf0dd312f3298f6cee9f215a35.tar.bz2
gentoo-2-792a16f52ede20bf0dd312f3298f6cee9f215a35.zip
Fixup a lot of incorrect type use.
(Portage version: 2.1_rc4-r3)
Diffstat (limited to 'net-misc/iputils')
-rw-r--r--net-misc/iputils/ChangeLog6
-rw-r--r--net-misc/iputils/files/iputils-021109-gcc4.patch177
-rw-r--r--net-misc/iputils/iputils-021109-r3.ebuild3
3 files changed, 184 insertions, 2 deletions
diff --git a/net-misc/iputils/ChangeLog b/net-misc/iputils/ChangeLog
index 928b037c34b6..e350b6f24880 100644
--- a/net-misc/iputils/ChangeLog
+++ b/net-misc/iputils/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for net-misc/iputils
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/iputils/ChangeLog,v 1.40 2006/05/06 07:24:49 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/iputils/ChangeLog,v 1.41 2006/06/08 10:57:02 vapier Exp $
+
+ 08 Jun 2006; Mike Frysinger <vapier@gentoo.org>
+ +files/iputils-021109-gcc4.patch, iputils-021109-r3.ebuild:
+ Fixup a lot of incorrect type use.
06 May 2006; Mike Frysinger <vapier@gentoo.org> iputils-021109-r3.ebuild:
Generate a ping6.8 symlink to ping.8 as pointed out by Matej Stepanek #132010.
diff --git a/net-misc/iputils/files/iputils-021109-gcc4.patch b/net-misc/iputils/files/iputils-021109-gcc4.patch
new file mode 100644
index 000000000000..2ed079e06d77
--- /dev/null
+++ b/net-misc/iputils/files/iputils-021109-gcc4.patch
@@ -0,0 +1,177 @@
+fix a lot of incorrect types
+
+--- iputils/arping.c
++++ iputils/arping.c
+@@ -434,7 +434,7 @@ main(int argc, char **argv)
+ }
+ } else if (!dad) {
+ int on = 1;
+- int alen = sizeof(saddr);
++ socklen_t alen = sizeof(saddr);
+
+ saddr.sin_port = htons(1025);
+ saddr.sin_addr = dst;
+@@ -463,7 +463,7 @@ main(int argc, char **argv)
+ }
+
+ if (1) {
+- int alen = sizeof(me);
++ socklen_t alen = sizeof(me);
+ if (getsockname(s, (struct sockaddr*)&me, &alen) == -1) {
+ perror("getsockname");
+ exit(2);
+@@ -495,9 +495,9 @@ main(int argc, char **argv)
+
+ while(1) {
+ sigset_t sset, osset;
+- char packet[4096];
++ unsigned char packet[4096];
+ struct sockaddr_ll from;
+- int alen = sizeof(from);
++ socklen_t alen = sizeof(from);
+ int cc;
+
+ if ((cc = recvfrom(s, packet, sizeof(packet), 0,
+--- iputils/clockdiff.c
++++ iputils/clockdiff.c
+@@ -120,7 +120,7 @@ long rtt_sigma = 0;
+ int
+ measure(struct sockaddr_in * addr)
+ {
+- int length;
++ socklen_t length;
+ int msgcount;
+ int cc, count;
+ fd_set ready;
+@@ -299,7 +299,7 @@ char *myname, *hisname;
+ int
+ measure_opt(struct sockaddr_in * addr)
+ {
+- int length;
++ socklen_t length;
+ int msgcount;
+ int cc, count;
+ fd_set ready;
+@@ -597,7 +597,7 @@ main(int argc, char *argv[])
+ }
+ if (ip_opt_len) {
+ struct sockaddr_in myaddr;
+- int addrlen = sizeof(myaddr);
++ socklen_t addrlen = sizeof(myaddr);
+ unsigned char rspace[ip_opt_len];
+
+ bzero(rspace, sizeof(rspace));
+--- iputils/ping6.c
++++ iputils/ping6.c
+@@ -313,7 +313,7 @@ int main(int argc, char *argv[])
+ hostname = target;
+
+ if (ipv6_addr_any(&source.sin6_addr)) {
+- int alen;
++ socklen_t alen;
+ int probe_fd = socket(AF_INET6, SOCK_DGRAM, 0);
+
+ if (probe_fd < 0) {
+--- iputils/ping.c
++++ iputils/ping.c
+@@ -260,7 +260,7 @@ main(int argc, char **argv)
+ }
+
+ if (source.sin_addr.s_addr == 0) {
+- int alen;
++ socklen_t alen;
+ struct sockaddr_in dst = whereto;
+ int probe_fd = socket(AF_INET, SOCK_DGRAM, 0);
+
+--- iputils/ping_common.c
++++ iputils/ping_common.c
+@@ -67,7 +67,7 @@ static void fill(char *patp)
+ int ii, jj, kk;
+ int pat[16];
+ char *cp;
+- char *bp = outpack+8;
++ u_char *bp = outpack+8;
+
+ for (cp = patp; *cp; cp++) {
+ if (!isxdigit(*cp)) {
+@@ -393,7 +393,7 @@ resend:
+ void sock_setbufs(int icmp_sock, int alloc)
+ {
+ int rcvbuf, hold;
+- int tmplen = sizeof(hold);
++ socklen_t tmplen = sizeof(hold);
+
+ if (!sndbuf)
+ sndbuf = alloc;
+@@ -464,7 +464,7 @@ void setup(int icmp_sock)
+
+ if (!(options & F_PINGFILLED)) {
+ int i;
+- char *p = outpack+8;
++ u_char *p = outpack+8;
+
+ /* Do not forget about case of small datalen,
+ * fill timestamp area too!
+--- iputils/rarpd.c
++++ iputils/rarpd.c
+@@ -423,7 +423,7 @@ void serve_it(int fd)
+ {
+ unsigned char buf[1024];
+ struct sockaddr_ll sll;
+- int sll_len = sizeof(sll);
++ socklen_t sll_len = sizeof(sll);
+ struct arphdr *a = (struct arphdr*)buf;
+ struct rarp_map *rmap;
+ unsigned char *ptr;
+--- iputils/rdisc.c
++++ iputils/rdisc.c
+@@ -451,7 +451,7 @@ next:
+ for (;;) {
+ u_char packet[MAXPACKET];
+ int len = sizeof (packet);
+- int fromlen = sizeof (from);
++ socklen_t fromlen = sizeof (from);
+ int cc;
+
+ cc=recvfrom(s, (char *)packet, len, 0,
+--- iputils/tftpd.c
++++ iputils/tftpd.c
+@@ -89,7 +89,7 @@ union {
+ struct sockaddr_in sin;
+ struct sockaddr_in6 sin6;
+ } from;
+-int fromlen;
++socklen_t fromlen;
+
+ #define MAXARG 1
+ char *dirs[MAXARG+1];
+@@ -149,7 +149,8 @@ int main(int ac, char **av)
+ */
+ {
+ int pid;
+- int i, j;
++ int i;
++ socklen_t j;
+
+ for (i = 1; i < 20; i++) {
+ pid = fork();
+--- iputils/traceroute6.c
++++ iputils/traceroute6.c
+@@ -501,7 +501,7 @@ int main(int argc, char *argv[])
+ (char *)&on, sizeof(on));
+
+ if (source == NULL) {
+- int alen;
++ socklen_t alen;
+ int probe_fd = socket(AF_INET6, SOCK_DGRAM, 0);
+
+ if (probe_fd < 0) {
+@@ -622,7 +622,7 @@ wait_for_reply(sock, from, reset_timer)
+ fd_set fds;
+ static struct timeval wait;
+ int cc = 0;
+- int fromlen = sizeof (*from);
++ socklen_t fromlen = sizeof (*from);
+
+ FD_ZERO(&fds);
+ FD_SET(sock, &fds);
diff --git a/net-misc/iputils/iputils-021109-r3.ebuild b/net-misc/iputils/iputils-021109-r3.ebuild
index 20dca60b767a..b71b6fdbc29c 100644
--- a/net-misc/iputils/iputils-021109-r3.ebuild
+++ b/net-misc/iputils/iputils-021109-r3.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/iputils/iputils-021109-r3.ebuild,v 1.24 2006/05/06 07:24:49 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/iputils/iputils-021109-r3.ebuild,v 1.25 2006/06/08 10:57:02 vapier Exp $
inherit flag-o-matic eutils toolchain-funcs
@@ -29,6 +29,7 @@ src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${P}-gcc34.patch
+ epatch "${FILESDIR}"/${P}-gcc4.patch
epatch "${FILESDIR}"/${PV}-no-pfkey-search.patch
epatch "${FILESDIR}"/${PV}-ipg-linux-2.6.patch #71756
epatch "${FILESDIR}"/${PV}-syserror.patch