* lib/exitcodes.h: Define E_SUCCESS as EXIT_SUCCESS. Added FIXMEs.

* libmisc/chowntty.c, libmisc/rlogin.c, libmisc/sub.c,
	src/newusers.c, libmisc/sulog.c, libmisc/system.c, src/logoutd.c,
	src/groups.c, src/id.c, lib/encrypt.c, libmisc/audit_help.c,
	libmisc/limits.c: Return EXIT_FAILURE instead of 1, and
	EXIT_SUCCESS instead of 0.
	* libmisc/audit_help.c: Replace an fprintf() by fputs().
	* libmisc/audit_help.c: Remove documentation of the audit_logger
	returned values. The function returns void.
	* libmisc/system.c: Only return status if waitpid succeeded.
	Return -1 otherwise.
This commit is contained in:
nekral-guest
2009-04-30 21:08:49 +00:00
parent 0f448edf19
commit a326ffa435
14 changed files with 74 additions and 49 deletions

View File

@@ -175,11 +175,11 @@ int main (int argc, char **argv)
pid = fork ();
if (pid > 0) {
/* parent */
exit (0);
exit (EXIT_SUCCESS);
} else if (pid < 0) {
/* error */
perror ("fork");
exit (1);
exit (EXIT_FAILURE);
}
#endif /* !DEBUG */
@@ -276,7 +276,7 @@ int main (int argc, char **argv)
/*
* This child has done all it can, drop dead.
*/
exit (0);
exit (EXIT_SUCCESS);
}
#ifdef USE_UTMPX
@@ -293,7 +293,7 @@ int main (int argc, char **argv)
*/
while (wait (&status) != -1);
}
return 1;
/* NOT REACHED */
return EXIT_FAILURE;
}