From: Jonathan Rajotte Date: Tue, 25 Jul 2017 15:31:02 +0000 (-0400) Subject: Fix: ret is used instead or err to set an error code X-Git-Tag: v2.11.0-rc1~492 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=7568ddbf5300572c752535bf7034c19cea1a2b43;p=lttng-tools.git Fix: ret is used instead or err to set an error code Use err instead of ret. ret is never used for error reporting under error label. Signed-off-by: Jonathan Rajotte Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-relayd/health-relayd.c b/src/bin/lttng-relayd/health-relayd.c index b14b82772..ba996621b 100644 --- a/src/bin/lttng-relayd/health-relayd.c +++ b/src/bin/lttng-relayd/health-relayd.c @@ -249,7 +249,7 @@ void *thread_manage_health(void *data) sock = lttcomm_create_unix_sock(health_unix_sock_path); if (sock < 0) { ERR("Unable to create health check Unix socket"); - ret = -1; + err = -1; goto error; } @@ -261,7 +261,7 @@ void *thread_manage_health(void *data) if (ret < 0) { ERR("Unable to set group on %s", health_unix_sock_path); PERROR("chown"); - ret = -1; + err = -1; goto error; } @@ -270,7 +270,7 @@ void *thread_manage_health(void *data) if (ret < 0) { ERR("Unable to set permissions on %s", health_unix_sock_path); PERROR("chmod"); - ret = -1; + err = -1; goto error; } }