clang-tidy: apply suggested fixes
[lttng-tools.git] / src / common / sessiond-comm / inet.cpp
index 633685799aad448f352adfac358c5214269dfa05..3471f6c0bfe9e50570bd710fcb50782a1be8ff79 100644 (file)
@@ -102,7 +102,7 @@ static int connect_no_timeout(struct lttcomm_sock *sock)
 
 static int connect_with_timeout(struct lttcomm_sock *sock)
 {
-       unsigned long timeout = lttcomm_get_network_timeout();
+       const unsigned long timeout = lttcomm_get_network_timeout();
        int ret, flags, connect_ret;
        struct timespec orig_time, cur_time;
        unsigned long diff_ms;
This page took 0.024096 seconds and 4 git commands to generate.