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 1RAUCr-00068G-1q for garchives@archives.gentoo.org; Sun, 02 Oct 2011 22:08:21 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E433D21C170; Sun, 2 Oct 2011 22:08:13 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id B57A321C170 for ; Sun, 2 Oct 2011 22:08:13 +0000 (UTC) Received: from flycatcher.gentoo.org (flycatcher.gentoo.org [81.93.255.6]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 282FD1B4006 for ; Sun, 2 Oct 2011 22:08:13 +0000 (UTC) Received: by flycatcher.gentoo.org (Postfix, from userid 559) id DA5BE2004B; Sun, 2 Oct 2011 22:08:11 +0000 (UTC) From: "Mike Frysinger (vapier)" To: gentoo-commits@lists.gentoo.org Reply-To: gentoo-dev@lists.gentoo.org, vapier@gentoo.org Subject: [gentoo-commits] gentoo-projects commit in portage-utils: main.c X-VCS-Repository: gentoo-projects X-VCS-Files: main.c X-VCS-Directories: portage-utils X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger Content-Type: text/plain; charset=utf8 Message-Id: <20111002220811.DA5BE2004B@flycatcher.gentoo.org> Date: Sun, 2 Oct 2011 22:08:11 +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: X-Archives-Hash: cd3527da2077873b777ecb22eb2b9a52 vapier 11/10/02 22:08:11 Modified: main.c Log: tweak how we ignore the return of freopen() to work with gcc-4.6+ Revision Changes Path 1.194 portage-utils/main.c file : http://sources.gentoo.org/viewvc.cgi/gentoo-projects/portage-utils= /main.c?rev=3D1.194&view=3Dmarkup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-projects/portage-utils= /main.c?rev=3D1.194&content-type=3Dtext/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-projects/portage-utils= /main.c?r1=3D1.193&r2=3D1.194 Index: main.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /var/cvsroot/gentoo-projects/portage-utils/main.c,v retrieving revision 1.193 retrieving revision 1.194 diff -u -r1.193 -r1.194 --- main.c 30 Mar 2011 05:33:19 -0000 1.193 +++ main.c 2 Oct 2011 22:08:11 -0000 1.194 @@ -1,7 +1,7 @@ /* * Copyright 2005-2008 Gentoo Foundation * Distributed under the terms of the GNU General Public License v2 - * $Header: /var/cvsroot/gentoo-projects/portage-utils/main.c,v 1.193 20= 11/03/30 05:33:19 vapier Exp $ + * $Header: /var/cvsroot/gentoo-projects/portage-utils/main.c,v 1.194 20= 11/10/02 22:08:11 vapier Exp $ * * Copyright 2005-2008 Ned Ludd - * Copyright 2005-2008 Mike Frysinger - @@ -119,7 +119,7 @@ NULL #define COMMON_GETOPTS_CASES(applet) \ case 'v': ++verbose; break; \ - case 'q': { FILE *dummy; ++quiet; dummy =3D freopen("/dev/null", "w", s= tderr); break; } \ + case 'q': ++quiet; if (freopen("/dev/null", "w", stderr)); break; \ case 'V': version_barf( applet ## _rcsid ); break; \ case 'h': applet ## _usage(EXIT_SUCCESS); break; \ case 'C': no_colors(); break; \