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.8.8~8 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=70ac723444f1d739063e93d3111093e97e060c62;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 cff6c6e72..721509714 100644 --- a/src/bin/lttng-relayd/health-relayd.c +++ b/src/bin/lttng-relayd/health-relayd.c @@ -250,7 +250,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; } @@ -262,7 +262,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; } @@ -271,7 +271,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; } }