clang-tidy: apply suggested fixes
[lttng-tools.git] / src / bin / lttng-relayd / health-relayd.cpp
index d1b619d3972d9f0a21d30adb2cd164a990fe4c6c..614c7f7d9c2bb9283f072553ca54abe02dbdcbab 100644 (file)
@@ -76,7 +76,7 @@ static int create_lttng_rundir_with_perm(const char *rundir)
                        ret = 0;
                }
        } else if (ret == 0) {
-               int is_root = !getuid();
+               const int is_root = !getuid();
 
                if (is_root) {
                        gid_t gid;
@@ -210,7 +210,7 @@ end:
 static int accept_unix_socket(void *data, int *out_fd)
 {
        int ret;
-       int accepting_sock = *((int *) data);
+       const int accepting_sock = *((int *) data);
 
        ret = lttcomm_accept_unix_sock(accepting_sock);
        if (ret < 0) {
This page took 0.022909 seconds and 4 git commands to generate.