Initial doxygen documentation for rc.h and einfo.h. Plus some header clean ups.

This commit is contained in:
Roy Marples
2007-09-25 15:38:21 +00:00
parent a2e5c4513e
commit 1e4e8ed27a
11 changed files with 464 additions and 149 deletions

View File

@@ -117,8 +117,11 @@ int rc_status (int argc, char **argv)
while (optind < argc)
rc_strlist_add (&levels, argv[optind++]);
if (! levels)
rc_strlist_add (&levels, rc_get_runlevel ());
if (! levels) {
level = rc_get_runlevel ();
rc_strlist_add (&levels, level);
free (level);
}
STRLIST_FOREACH (levels, level, i) {
print_level (level);