From: Jérémie Galarneau Date: Mon, 13 Nov 2017 15:31:29 +0000 (-0500) Subject: Fix warning: src/bin/lttng/utils.c: cast incompatible pointer X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=commitdiff_plain;h=56efeab366da412ee4196107c08174f32ed83c9a Fix warning: src/bin/lttng/utils.c: cast incompatible pointer Reported-by: Philippe Proulx Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng/utils.c b/src/bin/lttng/utils.c index 885f498b7..52a2440e7 100644 --- a/src/bin/lttng/utils.c +++ b/src/bin/lttng/utils.c @@ -387,7 +387,7 @@ int check_relayd(void) * A successful connect means the relayd exists thus returning 0 else a * negative value means it does NOT exists. */ - ret = connect(fd, &sin, sizeof(sin)); + ret = connect(fd, (struct sockaddr *) &sin, sizeof(sin)); if (ret < 0) { /* Not found. */ ret = 0;