Date: Thu, 16 Aug 2001 23:38:24 -0600 From: Warner Losh <imp@harmony.village.org> To: Mark Murray <mark@grondar.za> Cc: arch@FreeBSD.ORG Subject: Re: Style 9 nitpicking question Message-ID: <200108170538.f7H5cOW38477@harmony.village.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>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200108170538.f7H5cOW38477>