X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng%2Futils.c;fp=src%2Fbin%2Flttng%2Futils.c;h=52a2440e7dc486e24b94d85fb94aea7bda3feefa;hp=885f498b73c72340dedc99ae67a3ca5d226ed8ab;hb=56efeab366da412ee4196107c08174f32ed83c9a;hpb=40dde31f7eeb71af169b97b82d8fd1739895dfc3 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;