]> Zhao Yanbai Git Server - minix.git/commitdiff
service utility fix
authorTomas Hruby <tom@minix3.org>
Thu, 22 Jul 2010 09:57:14 +0000 (09:57 +0000)
committerTomas Hruby <tom@minix3.org>
Thu, 22 Jul 2010 09:57:14 +0000 (09:57 +0000)
- of course 0 is a valid cpu

commands/service/service.c
include/minix/rs.h

index 9848548b8ca721c6710f2fb59e056e3e2e5630e5..5e025c3ddead9abbef2752f6789c741f6b49ef93 100644 (file)
@@ -721,7 +721,7 @@ PRIVATE void do_cpu(config_t *cpe)
                        cpe->word, cpe->file, cpe->line);
        }
 
-       if (cpu <= 0)
+       if (cpu < 0)
        {
                fatal("do_cpu: %d out of range at %s:%d",
                        cpu, cpe->file, cpe->line);
index 997f31cce8df7ae53091ed3870df4c1f20a3df7a..5d64ff7565f79f078d78b95bc4c283d80c27f9e2 100644 (file)
@@ -49,8 +49,8 @@ struct rs_start
        uid_t rss_uid;
        endpoint_t rss_sigmgr;
        endpoint_t rss_scheduler;
-       unsigned rss_priority;
-       unsigned rss_quantum;
+       int rss_priority;
+       int rss_quantum;
        int rss_major;
        int rss_dev_style;
        long rss_period;