From 1e4e8ed27ae95096255283e92a75738bc7e296e5 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Tue, 25 Sep 2007 15:38:21 +0000 Subject: Initial doxygen documentation for rc.h and einfo.h. Plus some header clean ups. --- src/rc-status.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/rc-status.c') diff --git a/src/rc-status.c b/src/rc-status.c index f75bfb83..cd4a24f8 100644 --- a/src/rc-status.c +++ b/src/rc-status.c @@ -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); -- cgit v1.2.3