From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1RSIny-00069E-PE for garchives@archives.gentoo.org; Mon, 21 Nov 2011 01:36:18 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EE0B921C14A; Mon, 21 Nov 2011 01:35:51 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id B496421C135 for ; Mon, 21 Nov 2011 01:35:51 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 68B401B400C for ; Mon, 21 Nov 2011 01:35:51 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id A23F080060 for ; Mon, 21 Nov 2011 01:35:50 +0000 (UTC) From: "Mike Frysinger" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Frysinger" Message-ID: <9eba397314f86e231fa091e5203a80eccfacd6b8.vapier@gentoo> Subject: [gentoo-commits] proj/net-tools:master commit in: / X-VCS-Repository: proj/net-tools X-VCS-Files: ifconfig.c X-VCS-Directories: / X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: 9eba397314f86e231fa091e5203a80eccfacd6b8 Date: Mon, 21 Nov 2011 01:35:50 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: e9760088-aac8-47ad-8959-0acc62c381b9 X-Archives-Hash: ff71f768b745ef34a5b89cc54f4d41e4 Message-ID: <20111121013550.JswNa4Us6K8-gCx2bGzB4h2f257i__u2m21swJEN9YY@z> commit: 9eba397314f86e231fa091e5203a80eccfacd6b8 Author: Mike Frysinger gentoo org> AuthorDate: Mon Nov 21 00:51:23 2011 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Mon Nov 21 00:51:55 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/net-tools.git= ;a=3Dcommit;h=3D9eba3973 fix integer/pointer cast warnings On 64bit systems where sizeof(void *) !=3D sizeof(int), we get a warning when trying to assign the return of atoi(). So insert a cast to avoid. Signed-off-by: Mike Frysinger gentoo.org> --- ifconfig.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ifconfig.c b/ifconfig.c index 952e705..44cea40 100644 --- a/ifconfig.c +++ b/ifconfig.c @@ -497,7 +497,7 @@ int main(int argc, char **argv) if (!strcmp(*spp, "keepalive")) { if (*++spp =3D=3D NULL) usage(); - ifr.ifr_data =3D (caddr_t) atoi(*spp); + ifr.ifr_data =3D (caddr_t) (uintptr_t) atoi(*spp); if (ioctl(skfd, SIOCSKEEPALIVE, &ifr) < 0) { fprintf(stderr, "SIOCSKEEPALIVE: %s\n", strerror(errno)); goterr =3D 1; @@ -511,7 +511,7 @@ int main(int argc, char **argv) if (!strcmp(*spp, "outfill")) { if (*++spp =3D=3D NULL) usage(); - ifr.ifr_data =3D (caddr_t) atoi(*spp); + ifr.ifr_data =3D (caddr_t) (uintptr_t) atoi(*spp); if (ioctl(skfd, SIOCSOUTFILL, &ifr) < 0) { fprintf(stderr, "SIOCSOUTFILL: %s\n", strerror(errno)); goterr =3D 1;