Codepath refactoring.
Codepath refactoring.

testing against -1 is more "intuitive" as most libc function will return
-1 on error. When possible we should avoid having error handling
codepath in the function body and prefer enclosing it in block like
this:

if (error) {
    /* error handling */
}

en90/pkg,junovitch/pkg,khorben/pkg,khorben/pkg,skoef/pkg,Open343/pkg,junovitch/pkg,en90/pkg,skoef/pkg,khorben/pkg,Open343/pkg