From owner-freebsd-arch Thu Aug 16 22:38:29 2001 Delivered-To: freebsd-arch@freebsd.org Received: from rover.village.org (rover.bsdimp.com [204.144.255.66]) by hub.freebsd.org (Postfix) with ESMTP id ED97337B40D for ; Thu, 16 Aug 2001 22:38:26 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.11.3/8.11.3) with ESMTP id f7H5cPq19342; Thu, 16 Aug 2001 23:38:26 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.11.3/8.11.4) with ESMTP id f7H5cOW38477; Thu, 16 Aug 2001 23:38:25 -0600 (MDT) (envelope-from imp@harmony.village.org) Message-Id: <200108170538.f7H5cOW38477@harmony.village.org> To: Mark Murray Subject: Re: Style 9 nitpicking question Cc: arch@FreeBSD.ORG In-reply-to: Your message of "Thu, 16 Aug 2001 11:10:53 BST." <200108161010.f7GAAsK68419@grimreaper.grondar.za> References: <200108161010.f7GAAsK68419@grimreaper.grondar.za> Date: Thu, 16 Aug 2001 23:38:24 -0600 From: Warner Losh Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message <200108161010.f7GAAsK68419@grimreaper.grondar.za> Mark Murray writes: : 1) That "(void)" is useless by any metric that I am able to determine : (WARNS=2, BDECFLAGS etc), and gets in the way of linting. Is there : any reason to continue to advocate its use by this example? There : is no other reference to "voiding-out" of return values. lint complains on old systems. : 2) Is this (fprintf(stderr, "...", ...); exit(n);) really better than : errx(1, "...", ...); ? : : Any objections to changing the : : (void)fprintf(stderr, "usage: f [-ab]\n"); : exit(EX_USAGE); : : to : : errx(EX_USAGE, "usage: f [-ab]\n"); : : ?? Not from me. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message