diff options
author | Roy Marples <roy@marples.name> | 2007-04-10 11:24:58 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2007-04-10 11:24:58 +0000 |
commit | d3db9e9910ef0a472feb27cf4a9ace78e431ddd9 (patch) | |
tree | 7e01917c209258b2f459f63ba42558c3beffb2f5 /src/rc-status.c | |
parent | 662e308d86d63750fc1d939e68c2b5ee88fea593 (diff) |
Fix indentation
Diffstat (limited to 'src/rc-status.c')
-rw-r--r-- | src/rc-status.c | 72 |
1 files changed, 36 insertions, 36 deletions
diff --git a/src/rc-status.c b/src/rc-status.c index 5f2f9b1d..f1ea52ee 100644 --- a/src/rc-status.c +++ b/src/rc-status.c @@ -72,53 +72,53 @@ int main (int argc, char **argv) const struct option longopts[] = { - {"all", no_argument, NULL, 'a'}, - {"list", no_argument, NULL, 'l'}, - {"servicelist", no_argument, NULL, 's'}, - {"unused", no_argument, NULL, 'u'}, - {NULL, 0, NULL, 0} + {"all", no_argument, NULL, 'a'}, + {"list", no_argument, NULL, 'l'}, + {"servicelist", no_argument, NULL, 's'}, + {"unused", no_argument, NULL, 'u'}, + {NULL, 0, NULL, 0} }; while ((c = getopt_long(argc, argv, "alsu", longopts, &option_index)) != -1) switch (c) { case 'a': - levels = rc_get_runlevels (); - break; + levels = rc_get_runlevels (); + break; case 'l': - levels = rc_get_runlevels (); - STRLIST_FOREACH (levels, level, i) - printf ("%s\n", level); - rc_strlist_free (levels); - exit (EXIT_SUCCESS); + levels = rc_get_runlevels (); + STRLIST_FOREACH (levels, level, i) + printf ("%s\n", level); + rc_strlist_free (levels); + exit (EXIT_SUCCESS); case 's': - services = rc_services_in_runlevel (NULL); - STRLIST_FOREACH (services, service, i) - print_service (service); - rc_strlist_free (services); - exit (EXIT_SUCCESS); + services = rc_services_in_runlevel (NULL); + STRLIST_FOREACH (services, service, i) + print_service (service); + rc_strlist_free (services); + exit (EXIT_SUCCESS); case 'u': - services = rc_services_in_runlevel (NULL); - levels = rc_get_runlevels (); - STRLIST_FOREACH (services, service, i) - { - bool found = false; - STRLIST_FOREACH (levels, level, j) - if (rc_service_in_runlevel (service, level)) - { - found = true; - break; - } - if (! found) - print_service (service); - } - rc_strlist_free (levels); - rc_strlist_free (services); - exit (EXIT_SUCCESS); + services = rc_services_in_runlevel (NULL); + levels = rc_get_runlevels (); + STRLIST_FOREACH (services, service, i) + { + bool found = false; + STRLIST_FOREACH (levels, level, j) + if (rc_service_in_runlevel (service, level)) + { + found = true; + break; + } + if (! found) + print_service (service); + } + rc_strlist_free (levels); + rc_strlist_free (services); + exit (EXIT_SUCCESS); case '?': - exit (EXIT_FAILURE); + exit (EXIT_FAILURE); default: - exit (EXIT_FAILURE); + exit (EXIT_FAILURE); } while (optind < argc) |