/[baselayout]/trunk/src/rc-status.c
Gentoo

Diff of /trunk/src/rc-status.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 3039 Revision 3040
17#include "rc-misc.h" 17#include "rc-misc.h"
18#include "strlist.h" 18#include "strlist.h"
19 19
20#define APPLET "rc-status" 20#define APPLET "rc-status"
21 21
22static char const *types[] = { "ineed", "iuse", "iafter", NULL }; 22static const char *types_nua[] = { "ineed", "iuse", "iafter", NULL };
23 23
24static void print_level (char *level) 24static void print_level (char *level)
25{ 25{
26 printf ("Runlevel: %s%s%s\n", 26 printf ("Runlevel: %s%s%s\n",
27 ecolor (ECOLOR_HILITE), 27 ecolor (ECOLOR_HILITE),
144 deptree = rc_deptree_load (); 144 deptree = rc_deptree_load ();
145 STRLIST_FOREACH (levels, level, i) { 145 STRLIST_FOREACH (levels, level, i) {
146 print_level (level); 146 print_level (level);
147 services = rc_services_in_runlevel (level); 147 services = rc_services_in_runlevel (level);
148 if (deptree) { 148 if (deptree) {
149 ordered = rc_deptree_depends (deptree, (char **) types, services, 149 ordered = rc_deptree_depends (deptree, types_nua,
150 (const char **) services,
150 level, depopts); 151 level, depopts);
151 rc_strlist_free (services); 152 rc_strlist_free (services);
152 services = ordered; 153 services = ordered;
153 ordered = NULL; 154 ordered = NULL;
154 } 155 }

Legend:
Removed from v.3039  
changed lines
  Added in v.3040

  ViewVC Help
Powered by ViewVC 1.1.20