Re: bin/ln & WARNS=5

Dag-Erling Smorgrav <[email protected]> 15 Jul 2002 13:17:20 +0200
Newsgroups gmane.os.freebsd.devel.audit
Message-ID <[email protected]>
Giorgos Keramidas <[email protected]> writes:
> My intuition was that size_t being unsigned won't require truncation
> of the (int) return value...  But if one wanted to explicitly make
> both a check for (-1) and the return value being less than the size of
> the buffer would the following be more proper?

Looks good to me, apart from the extra parentheses around the argument
to sizeof.

DES
-- 
Dag-Erling Smorgrav - [email protected]

To Unsubscribe: send mail to [email protected]
with "unsubscribe freebsd-audit" in the body of the message