From owner-cvs-all Wed Feb 21 5: 4:15 2001 Delivered-To: cvs-all@freebsd.org Received: from critter.freebsd.dk (flutter.freebsd.dk [212.242.40.147]) by hub.freebsd.org (Postfix) with ESMTP id 103C837B491; Wed, 21 Feb 2001 05:03:53 -0800 (PST) (envelope-from phk@critter.freebsd.dk) Received: from critter (localhost [127.0.0.1]) by critter.freebsd.dk (8.11.1/8.11.1) with ESMTP id f1LD3ox01168; Wed, 21 Feb 2001 14:03:50 +0100 (CET) (envelope-from phk@critter.freebsd.dk) To: Ben Smithurst Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/share/man/man9 style.9 In-Reply-To: Your message of "Wed, 21 Feb 2001 04:10:19 PST." <200102211210.f1LCAKN41997@freefall.freebsd.org> Date: Wed, 21 Feb 2001 14:03:50 +0100 Message-ID: <1166.982760630@critter> From: Poul-Henning Kamp Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <200102211210.f1LCAKN41997@freefall.freebsd.org>, Ben Smithurst writes: >ben 2001/02/21 04:10:19 PST > > Modified files: > share/man/man9 style.9 > Log: > Don't suggest > > if (error = function(a1, a2)) > > since it causes a warning with -Wall. Change it so it has an explicit test > against zero, > > if ((error = function(a1, a2)) != 0) Better, and more readable: error = function(a1, a2); if (error != 0) -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message