Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Oct 2003 11:24:00 +0100
From:      Pawel Jakub Dawidek <nick@garage.freebsd.pl>
To:        Erik Trulsson <ertr1013@student.uu.se>
Cc:        src-committers@FreeBSD.org
Subject:   Re: cvs commit: src/lib/libc/rpc clnt_simple.c
Message-ID:  <20031029102400.GV84474@garage.freebsd.pl>
In-Reply-To: <20031029101805.GA24695@falcon.midgard.homeip.net>
References:  <200310290918.h9T9IiwQ095857@repoman.freebsd.org> <20031029095700.GU84474@garage.freebsd.pl> <20031029101805.GA24695@falcon.midgard.homeip.net>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031029102400.GV84474>