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:49:17 +0000 (17:49 -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 e1a4b7e9e44f39f5bd9b60cc750ac78ef98feac3..fc4723879f5fce3b10e98b9f31656882a38c52d4 100644 (file)
@@ -423,7 +423,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.025819 seconds and 4 git commands to generate.