[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: bugfix for vacation



In article <19990715025911.I19631@ipe.uni-stuttgart.de>, Nils Rennebarth
<nils@ipe.uni-stuttgart.de> writes
>        if (i < 0) {
>                syslog(LOG_ERR, "vacation: fork: %s", strerror(errno));
>                exit(1);
>        }
>        if (i == 0) {
[...]
>        }

Why isn't the second if an elseif? Wouldn't that be more efficient?

-- 
Ian Lynagh - ian@lynagh.demon.co.uk
http://www.lynagh.demon.co.uk/

A circuit protected by a fast acting fuse will protect the fuse by blowing
first.


Reply to: