service utility fix

- of course 0 is a valid cpu
This commit is contained in:
Tomas Hruby 2010-07-22 09:57:14 +00:00
parent 81f6039a7f
commit 62d44dc9ef
2 changed files with 3 additions and 3 deletions

View 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);

View 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;