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:31:46 +0000 (10:31 -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 885f498b73c72340dedc99ae67a3ca5d226ed8ab..52a2440e7dc486e24b94d85fb94aea7bda3feefa 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.025867 seconds and 4 git commands to generate.