Re: bin/ln & WARNS=5
Bruce Evans <[email protected]> Mon, 15 Jul 2002 20:25:13 +1000 (EST)
| Newsgroups | gmane.os.freebsd.devel.audit |
|---|---|
| Message-ID | <[email protected]> |
On 15 Jul 2002, Dag-Erling Smorgrav wrote: > Giorgos Keramidas <[email protected]> writes: > > The following allows me to build bin/ln with WARNS=5 on i386. > > Does it look OK, or have I missed something important? > > I'd rather cast sizeof to int. That would break the possibly-intentional check for snprintf() failing. (size_t)-1 >= sizeof(path), but !(-1 >= (int)sizeof(path)). Bruce To Unsubscribe: send mail to [email protected] with "unsubscribe freebsd-audit" in the body of the message