From: Tomas Hruby Date: Thu, 22 Jul 2010 09:57:14 +0000 (+0000) Subject: service utility fix X-Git-Tag: v3.1.8~161 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/verify-sign/verify.pl?a=commitdiff_plain;h=62d44dc9ef29e85d0f588b14b85135d655261a86;p=minix.git service utility fix - of course 0 is a valid cpu --- diff --git a/commands/service/service.c b/commands/service/service.c index 9848548b8..5e025c3dd 100644 --- a/commands/service/service.c +++ b/commands/service/service.c @@ -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); diff --git a/include/minix/rs.h b/include/minix/rs.h index 997f31cce..5d64ff756 100644 --- a/include/minix/rs.h +++ b/include/minix/rs.h @@ -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;