Date: Mon, 21 Jul 2003 21:43:01 -0600 From: Scott Long <scottl@freebsd.org> To: Poul-Henning Kamp <phk@FreeBSD.org> Cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/sys cdefs.h systm.h Message-ID: <3F1CB2C5.5060900@freebsd.org> In-Reply-To: <200307211835.h6LIZpQu051797@repoman.freebsd.org> References: <200307211835.h6LIZpQu051797@repoman.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Poul-Henning Kamp wrote: > phk 2003/07/21 11:35:51 PDT > > FreeBSD src repository > > Modified files: > sys/sys cdefs.h systm.h > Log: > Add a new macro __nonnull(x) to use the new GCC33 attribute which checks > that an argument is not a NULL pointer. > > Apply various obvious places. > > I belive __printf*() implies __nonnull() so it is not needed on functions > already tagged that way. > > Revision Changes Path > 1.72 +6 -0 src/sys/sys/cdefs.h > 1.195 +16 -16 src/sys/sys/systm.h > strtoul and strtol are allowed to have their second argument be NULL. It's even expressly documented in the man page, and a casual look at libkern verifies it. Scott
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3F1CB2C5.5060900>