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

@@ -208,8 +208,11 @@ int rc_update (int argc, char **argv)
eerror ("%s: service `%s' does not exist", applet, service);
else {
retval = EXIT_SUCCESS;
if (! runlevels)
rc_strlist_add (&runlevels, rc_get_runlevel ());
if (! runlevels) {
runlevel = rc_get_runlevel ();
rc_strlist_add (&runlevels, runlevel);
free (runlevel);
}
STRLIST_FOREACH (runlevels, runlevel, i) {
if (action & DOADD) {
if (! add (runlevel, service))