~vorlon/ubuntu/raring/upstart/lp.1199778

« back to all changes in this revision

Viewing changes to init/tests/test_job.c

  • Committer: Scott James Remnant
  • Date: 2007-03-13 17:20:20 UTC
  • Revision ID: scott@netsplit.com-20070313172020-s5xm37ljy70y41i3
* init/job.h (Job): Change the type of the id to unsigned int.
* init/job.c (job_next_id): Change ids to be unsigned ints, and now
we can just use %u in the nih_error call.
(job_find_by_id): Change argument to be unsigned int
* init/tests/test_job.c (test_find_by_id): Change id type to unsigned
int.
* init/event.h (Event): Change the type of the id to unsigned int.
* init/event.c (event_emit_next_id): Change ids to be unsigned ints,
and now we can just use %u in the nih_error call.
(event_emit_find_by_id): Change argument to be unsigned int
* init/tests/test_event.c (test_emit, test_emit_find_by_id) 
(check_event, check_event_finished): Change id type to unsigned int.

Show diffs side-by-side

added added

removed removed

Lines of Context:
764
764
void
765
765
test_find_by_id (void)
766
766
{
767
 
        Job      *job1, *job2, *job3, *ptr;
768
 
        uint32_t  id;
 
767
        Job          *job1, *job2, *job3, *ptr;
 
768
        unsigned int  id;
769
769
 
770
770
        TEST_FUNCTION ("job_find_by_id");
771
771
        job1 = job_new (NULL, "foo");