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-Url: http://git.efficios.com/?p=lttng-tools.git;a=commitdiff_plain;h=97056403bdb7c18abe9c1e8e0824e3a64123c4c2 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