Fix warning: src/bin/lttng/utils.c: cast incompatible pointer
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 13 Nov 2017 15:31:29 +0000 (10:31 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 13 Nov 2017 15:34:29 +0000 (10:34 -0500)
Reported-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
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.024689 seconds and 4 git commands to generate.