@@ -730,12 +730,12 @@ static int schedule_common_(void *arg)
continue;
if (sync == ODP_SCHED_SYNC_ORDERED) {
- int ndx;
- int ndx_max;
+ uint32_t ndx;
+ uint32_t ndx_max;
int rc;
ndx_max = odp_queue_lock_count(from);
- CU_ASSERT_FATAL(ndx_max >= 0);
+ CU_ASSERT_FATAL(ndx_max > 0);
qctx = odp_queue_context(from);
@@ -781,12 +781,12 @@ static int schedule_common_(void *arg)
buf = odp_buffer_from_event(ev);
num = 1;
if (sync == ODP_SCHED_SYNC_ORDERED) {
- int ndx;
- int ndx_max;
+ uint32_t ndx;
+ uint32_t ndx_max;
int rc;
ndx_max = odp_queue_lock_count(from);
- CU_ASSERT_FATAL(ndx_max >= 0);
+ CU_ASSERT_FATAL(ndx_max > 0);
qctx = odp_queue_context(from);
bctx = odp_buffer_addr(buf);
@@ -996,11 +996,11 @@ static void reset_queues(thread_args_t *args)
for (k = 0; k < args->num_bufs; k++) {
queue_context *qctx =
odp_queue_context(queue);
- int ndx;
- int ndx_max;
+ uint32_t ndx;
+ uint32_t ndx_max;
ndx_max = odp_queue_lock_count(queue);
- CU_ASSERT_FATAL(ndx_max >= 0);
+ CU_ASSERT_FATAL(ndx_max > 0);
qctx->sequence = 0;
for (ndx = 0; ndx < ndx_max; ndx++)
qctx->lock_sequence[ndx] = 0;
@@ -1436,7 +1436,7 @@ static int create_queues(void)
return -1;
}
if (odp_queue_lock_count(q) !=
- (int)capa.max_ordered_locks) {
+ capa.max_ordered_locks) {
printf("Queue %" PRIu64 " created with "
"%d locks instead of expected %d\n",
odp_queue_to_u64(q),