From: David Goulet Date: Mon, 25 Nov 2013 19:15:51 +0000 (-0500) Subject: Fix: comparison of unsigned enum expression >= 0 X-Git-Tag: v2.4.0-rc2~25 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=1eb682be3330c00ac2ee60a596dda4eb440e3784;p=lttng-tools.git Fix: comparison of unsigned enum expression >= 0 Signed-off-by: David Goulet --- diff --git a/src/common/ust-consumer/ust-consumer.c b/src/common/ust-consumer/ust-consumer.c index c6bd5196b..1a7b2cd4b 100644 --- a/src/common/ust-consumer/ust-consumer.c +++ b/src/common/ust-consumer/ust-consumer.c @@ -2264,14 +2264,14 @@ int lttng_ustconsumer_request_metadata(struct lttng_consumer_local_data *ctx, health_code_update(); - ret_code = lttng_ustconsumer_recv_metadata(ctx->consumer_metadata_socket, + ret = lttng_ustconsumer_recv_metadata(ctx->consumer_metadata_socket, key, offset, len, channel, timer, wait); - if (ret_code >= 0) { + if (ret >= 0) { /* * Only send the status msg if the sessiond is alive meaning a positive * ret code. */ - (void) consumer_send_status_msg(ctx->consumer_metadata_socket, ret_code); + (void) consumer_send_status_msg(ctx->consumer_metadata_socket, ret); } ret = 0;