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.9.7~6 X-Git-Url: http://git.liburcu.org/?p=lttng-tools.git;a=commitdiff_plain;h=723c72997abdee0d4f2c9dc57ecc83530b4f1a5c 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 912cbd577..1e518f883 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;