X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng%2Futils.c;h=52a2440e7dc486e24b94d85fb94aea7bda3feefa;hb=bc6bc7c52eff6431a517ba0f25f50061074949fb;hp=885f498b73c72340dedc99ae67a3ca5d226ed8ab;hpb=3e8f2238b96759216a76c7f26ca875247a45d06f;p=lttng-tools.git 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;