diff options
Diffstat (limited to 'rvnit.c')
-rw-r--r-- | rvnit.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/rvnit.c b/rvnit.c index 9b2d0ab..3f70458 100644 --- a/rvnit.c +++ b/rvnit.c @@ -396,6 +396,15 @@ timedwait(int *wstatus, int secs) } int +svcmp(void const *a, void const *b) +{ + const struct entry *sv_a = a; + const struct entry *sv_b = b; + + return strcmp(sv_a->name, sv_b->name); +} + +int main() { pipe(selflogfd); @@ -443,6 +452,8 @@ main() closedir(dir); + qsort(services, MAX_SV, sizeof services[0], svcmp); + LOG("booting"); for (level = 0; level < 100; level++) { |