Make job id numbering start from 1, not 0

darcs-hash:20060428132137-ac50b-8e5adcdbc18ad7627b66e9129a13b037a669dd02.gz
This commit is contained in:
axel
2006-04-28 23:21:37 +10:00
parent 445f6539cf
commit d690a15b29
3 changed files with 13 additions and 11 deletions

4
proc.c
View File

@@ -182,7 +182,7 @@ int proc_get_last_status()
job_t *job_create()
{
int free_id=0;
int free_id=1;
job_t *res;
while( job_get( free_id ) != 0 )
@@ -204,7 +204,7 @@ job_t *job_create()
job_t *job_get( int id )
{
job_t *res = first_job;
if( id == -1 )
if( id <= 0 )
{
return res;
}