Garrett Wollman wrote: > > Perhaps if name[] had been declared thus: > > #define INTTYPE_NCHARS(t) ((sizeof(t) * 3 * CHAR_BIT + 7) / 8) > > char name[(sizeof "ipfw: ") + INTTYPE_NCHARS(int)]; Or alternatively (removing a bit more magic): #include <sys/types.h> #define INTTYPE_NCHARS(t) (howmany (sizeof(t) * 3 * CHAR_BIT, 8)) The macro howmany() is quite useful. It is also in <sys/param.h> Mike Kennett ([EMAIL PROTECTED]) To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
- Re: FreeBSD security audit... David O'Brien
- Re: FreeBSD security auditing p... Warner Losh
- Re: FreeBSD security auditing project. Brian Fundakowski Feldman
- Re: FreeBSD security auditing proje... Peter Jeremy
- Re: FreeBSD security auditing p... Brian Fundakowski Feldman
- Re: FreeBSD security audit... Brad Knowles
- Re: FreeBSD security auditing proje... Jordan K. Hubbard
- Re: FreeBSD security auditing proje... Warner Losh
- Re: FreeBSD security auditing proje... Warner Losh
- Re: FreeBSD security auditing proje... Garrett Wollman
- Re: FreeBSD security auditing p... Michael Kennett
- Re: FreeBSD security auditing project. Mark Murray
- Re: FreeBSD security auditing project. Kris Kennaway
- Re: FreeBSD security auditing project. Mark Murray
- Re: FreeBSD security auditing project. David O'Brien
- Re: FreeBSD security auditing project. Kris Kennaway
- Re: FreeBSD security auditing project. Doug Rabson
- Re: FreeBSD security auditing proje... scanner
- Re: FreeBSD security auditing p... Robert Watson
- Re: FreeBSD security auditing project. Mark Murray
- Re: FreeBSD security auditing project. Warner Losh