Are you sure that this is safe?
Yes. The main function invokes ping_echo just before returning. ping_echo invokes ping_run, with a pointer to echo_finish just before returning. ping_run invokes echo_finish just before returning. Therefore the "eturn (ping->ping_num_recv == 0);" statement is practically the last instruction (ignoring the frees) that gets executed and the returned value cascades back to the return statement in main. Hence no need for a call to exit. Preliminary testing (running ping with almost all the various options) confirms this. Happy hacking, Debarshi -- GPG key ID: 63D4A5A7 Key server: pgp.mit.edu _______________________________________________ bug-inetutils mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-inetutils
