Hi Paul,
> I don't get it. Why doesn't freebsd like this code?
>
> <code>
> void manage_stop_children()
> {
> /*
> *
> * cleanup all remaining forked processes
> *
> */
> trace(TRACE_MESSAGE, "%s,%s: General stop requested. Killing
> children.. ",
> __FILE__,__func__);
> int stillSomeAlive = 1;
> It appears gcc on freebsd doesn't like 'int var=0' type declarations inside
> functions. Or am I missing something else here.
That's not allowed in C, all declarations have to be first. C++ allows
declarations everywhere. Nevertheless 'declarations first' is a good
idea for better readability ...
Thomas
--
http://www.tmueller.com for pgp key (95702B3B)