X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng%2Futils.c;h=1e518f883d49b4bf640a09f1b799c760926fe673;hb=723c72997abdee0d4f2c9dc57ecc83530b4f1a5c;hp=912cbd5775b08bd97485c3dd3768a8ed1a6a8a71;hpb=4ba92f185fb1d0b112cbc804a261939f5f81dc34;p=lttng-tools.git 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;