Fix: use signed variable for refcounting of consumer_relayd_sock_pair
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Wed, 14 Mar 2018 18:54:21 +0000 (14:54 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 5 Jun 2018 21:43:48 +0000 (17:43 -0400)
Otherwise refcount check after decreasing have no meaning as in
consumer_stream_relayd_close function.

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/common/consumer/consumer.h

index b8d45cef154166ff657cd93ee735ad9c34570d22..322f1e64d81871d34d58fcdb4a4b96fcfd517f56 100644 (file)
@@ -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
This page took 0.026819 seconds and 5 git commands to generate.