Fix: free_event_id check should compare unsigned int with -1U
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 8 May 2012 20:02:41 +0000 (16:02 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 8 May 2012 20:02:41 +0000 (16:02 -0400)
Otherwise, on 32-bit:

lttng-modules/lttng-events.c:295: warning: comparison is always false due
to limited range of data type

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
lttng-events.c

index 9d933935dbf87a6fa6707ee88b9d415df79dfbdd..bbff1c9df2b352167c80317853669590fb893dda 100644 (file)
@@ -292,7 +292,7 @@ struct lttng_event *lttng_event_create(struct lttng_channel *chan,
        int ret;
 
        mutex_lock(&sessions_mutex);
-       if (chan->free_event_id == -1UL)
+       if (chan->free_event_id == -1U)
                goto full;
        /*
         * This is O(n^2) (for each event, the loop is called at event
This page took 0.027465 seconds and 4 git commands to generate.