From owner-cvs-src@FreeBSD.ORG Wed Oct 29 02:26:07 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7461216A4CE; Wed, 29 Oct 2003 02:26:07 -0800 (PST) Received: from milla.ask33.net (milla.ask33.net [217.197.166.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 776FC43F85; Wed, 29 Oct 2003 02:26:06 -0800 (PST) (envelope-from nick@milla.ask33.net) Received: by milla.ask33.net (Postfix, from userid 1001) id 877CB3ABB2D; Wed, 29 Oct 2003 11:24:00 +0100 (CET) Date: Wed, 29 Oct 2003 11:24:00 +0100 From: Pawel Jakub Dawidek To: Erik Trulsson Message-ID: <20031029102400.GV84474@garage.freebsd.pl> References: <200310290918.h9T9IiwQ095857@repoman.freebsd.org> <20031029095700.GU84474@garage.freebsd.pl> <20031029101805.GA24695@falcon.midgard.homeip.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="1ugEqy3masBx2OgH" Content-Disposition: inline In-Reply-To: <20031029101805.GA24695@falcon.midgard.homeip.net> X-PGP-Key-URL: http://garage.freebsd.pl/jules.asc X-OS: FreeBSD 4.8-RELEASE-p9 i386 X-URL: http://garage.freebsd.pl User-Agent: Mutt/1.5.1i cc: cvs-src@FreeBSD.org cc: Martin Blapp cc: cvs-all@FreeBSD.org cc: src-committers@FreeBSD.org Subject: Re: cvs commit: src/lib/libc/rpc clnt_simple.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Oct 2003 10:26:07 -0000 --1ugEqy3masBx2OgH Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Oct 29, 2003 at 11:18:05AM +0100, Erik Trulsson wrote: +> > +> - if ((nettype =3D=3D NULL) || (nettype[0] =3D=3D NULL)) +> > +> + if ((nettype =3D=3D NULL) || (nettype[0] =3D=3D 0)) +> >=20 +> > More correct is to use '\0' for characters comparsion. +>=20 +> No, not *more* correct. '\0' and 0 are both constants with type "int" +> and value zero, so they can be used interchangeably. +> For stylistic reasons one might wish to use '\0' instead of 0 for +> character comparisons, but the the C language does not make a +> difference. s/More correct/More correct from style point of view/ of course. Sorry for the confusion. --=20 Pawel Jakub Dawidek pawel@dawidek.net UNIX Systems Programmer/Administrator http://garage.freebsd.pl Am I Evil? Yes, I Am! http://cerber.sourceforge.net --1ugEqy3masBx2OgH Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iQCVAwUBP5+VQD/PhmMH/Mf1AQGR+gP+PQsQvs02DDbVO21I3QQUIcJhvtWR98/c sLEk+wQxCvCvjS7Or8Ph0SENpctZlJ9o+ZhtKHhBz3uLPxSdWjHFfVEPjt8hHm9P dbvDlyn1snjt+2tJY2DuwNXkA7Fm/iPgACY3QuauhzoL6dDY6CexwBJ2f6iM3VQc kFKEPOGvyfI= =ucY8 -----END PGP SIGNATURE----- --1ugEqy3masBx2OgH--