On Mon, Jul 24, 2000 at 07:01:10PM +0200, Petr Novotny wrote:
> The newer djb sources (like djbdns - formerly dnscache) uses
> main(int argc,char **argv)
> without return value specifications, which, by C standards, mean 
> implicit int main().

Only by old C standards.  The new C99 standard forbids implicit int.

Even though void main() might in theory cause effects worse than random
exit status, I'm more worried about other C code, like
qmail-1.03/substdi.c:oneread() which calls read(2) without a prototype,
but with a third argument of type 'int' instead of 'size_t'.  I'm
wondering if there are any platforms where this breaks.  I would expect
really nasty effects if 'size_t' is larger than 'int' and not passed to
functions in a compatible way.

-- 
Jan

Reply via email to