Fix: Silence warning formating pid_t as int
[lttng-tools.git] / src / bin / lttng-relayd / health-relayd.c
index 10a0e5fdffe1b88ab4ae144dcfff87f381b38b1a..8452c1a6c3886f4aaa11b9e71faa7a358d48d254 100644 (file)
@@ -207,7 +207,7 @@ int setup_health_path(void)
                }
                snprintf(health_unix_sock_path, sizeof(health_unix_sock_path),
                        DEFAULT_GLOBAL_RELAY_HEALTH_UNIX_SOCK,
-                       getpid());
+                       (int) getpid());
        } else {
                /* Set health check Unix path */
                if (strlen(health_unix_sock_path) != 0) {
@@ -216,7 +216,7 @@ int setup_health_path(void)
 
                snprintf(health_unix_sock_path, sizeof(health_unix_sock_path),
                        DEFAULT_HOME_RELAY_HEALTH_UNIX_SOCK,
-                       home_path, getpid());
+                       home_path, (int) getpid());
        }
 
 end:
This page took 0.022932 seconds and 4 git commands to generate.