Fix cmsg handling
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 26 Sep 2011 17:56:04 +0000 (13:56 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 26 Sep 2011 17:56:04 +0000 (13:56 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
tests/ust-basic-tracing/ust-basic-tracing.c
tests/ust-multi-test/ust-multi-test.c

index 583179c1e9b03354a20fe51fbe73179df4703840..8e0847fa41c5828828bc9e0a6d94872402b441bb 100644 (file)
@@ -195,7 +195,7 @@ static int lttcomm_recv_fd(int sock)
        }
        /* this is our fd */
        for (i = 0; i < sizeof(int); i++)
-               tmp.vc[i] = CMSG_DATA(cmsg)[0];
+               tmp.vc[i] = CMSG_DATA(cmsg)[i];
        ret = tmp.vi;
        printf("received fd %d\n", ret);
 end:
index c4b4f212973958664d69592232542e9ec8470394..87352c1dee9352e65ee3efb149ef2af5098659a8 100644 (file)
@@ -203,7 +203,7 @@ static int lttcomm_recv_fd(int sock)
        }
        /* this is our fd */
        for (i = 0; i < sizeof(int); i++)
-               tmp.vc[i] = CMSG_DATA(cmsg)[0];
+               tmp.vc[i] = CMSG_DATA(cmsg)[i];
        ret = tmp.vi;
        printf("received fd %d\n", ret);
 end:
This page took 0.026623 seconds and 4 git commands to generate.