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-Tag: v2.11.0-rc1~436 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=56efeab366da412ee4196107c08174f32ed83c9a;hp=40dde31f7eeb71af169b97b82d8fd1739895dfc3 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;