From: Jonathan Rajotte Date: Wed, 14 Mar 2018 18:54:21 +0000 (-0400) Subject: Fix: use signed variable for refcounting of consumer_relayd_sock_pair X-Git-Tag: v2.10.5~5 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=c868f6676bf1839bb70d37dbcded212ceebd6de7;p=lttng-tools.git Fix: use signed variable for refcounting of consumer_relayd_sock_pair Otherwise refcount check after decreasing have no meaning as in consumer_stream_relayd_close function. Signed-off-by: Jonathan Rajotte Signed-off-by: Jérémie Galarneau --- diff --git a/src/common/consumer/consumer.h b/src/common/consumer/consumer.h index b8d45cef1..322f1e64d 100644 --- a/src/common/consumer/consumer.h +++ b/src/common/consumer/consumer.h @@ -429,7 +429,7 @@ struct consumer_relayd_sock_pair { /* Network sequence number. */ uint64_t net_seq_idx; /* Number of stream associated with this relayd */ - unsigned int refcount; + int refcount; /* * This flag indicates whether or not we should destroy this object. The