Subject: CVS commit: src/sbin/init
To: None <source-changes@NetBSD.org>
From: Christian Biere <cbiere@netbsd.org>
List: source-changes
Date: 02/05/2007 22:36:18
Module Name: src
Committed By: cbiere
Date: Mon Feb 5 22:36:18 UTC 2007
Modified Files:
src/sbin/init: init.c
Log Message:
* 0/1 -> EXIT_{SUCCESS,FAILURE}
* make_utmpx(): Added comment and slightly simpler construct.
* alrm_handler(): Suppress "unused parameter" warning.
* mapfile():
* Handle st.st_size correctly.
* Avoid unnecessary return statements.
* Removed unnecessary MAP_FILE flag.
* Use S_ISLNK() and check S_ISREG() too.
* Add the terminating NUL rather after readlink() than
before, just in case.
* writefile():
* Avoid unnecessary return statements.
* read_ttys():
* Check S_ISREG() as well.
* Check for st.st_size > 0 rather than != 0.
To generate a diff of this commit:
cvs rdiff -r1.85 -r1.86 src/sbin/init/init.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.