Fix warning: src/bin/lttng/utils.c: cast incompatible pointer
[lttng-tools.git] / src / bin / lttng / utils.c
index 912cbd5775b08bd97485c3dd3768a8ed1a6a8a71..1e518f883d49b4bf640a09f1b799c760926fe673 100644 (file)
@@ -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;
This page took 0.023496 seconds and 4 git commands to generate.