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

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

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

Revision 3039 Revision 3040
112 112
113 while (optind < argc) { 113 while (optind < argc) {
114 list = NULL; 114 list = NULL;
115 rc_strlist_add (&list, argv[optind]); 115 rc_strlist_add (&list, argv[optind]);
116 errno = 0; 116 errno = 0;
117 depends = rc_deptree_depends (deptree, NULL, list, runlevel, 0); 117 depends = rc_deptree_depends (deptree, NULL, (const char **) list,
118 runlevel, 0);
118 if (! depends && errno == ENOENT) 119 if (! depends && errno == ENOENT)
119 eerror ("no dependency info for service `%s'", argv[optind]); 120 eerror ("no dependency info for service `%s'", argv[optind]);
120 else 121 else
121 rc_strlist_add (&services, argv[optind]); 122 rc_strlist_add (&services, argv[optind]);
122 123
138 if (! types) { 139 if (! types) {
139 rc_strlist_add (&types, "ineed"); 140 rc_strlist_add (&types, "ineed");
140 rc_strlist_add (&types, "iuse"); 141 rc_strlist_add (&types, "iuse");
141 } 142 }
142 143
143 depends = rc_deptree_depends (deptree, types, services, runlevel, options); 144 depends = rc_deptree_depends (deptree, (const char **) types,
145 (const char **) services, runlevel, options);
144 146
145 if (depends) { 147 if (depends) {
146 STRLIST_FOREACH (depends, service, i) { 148 STRLIST_FOREACH (depends, service, i) {
147 if (first) 149 if (first)
148 first = false; 150 first = false;

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

  ViewVC Help
Powered by ViewVC 1.1.20