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.11.0-rc1~197 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=97056403bdb7c18abe9c1e8e0824e3a64123c4c2;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 af36de11c..acdc4b839 100644 --- a/src/common/consumer/consumer.h +++ b/src/common/consumer/consumer.h @@ -473,7 +473,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