Cleanup: don't use GNU old-style field designator extension
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 10 May 2012 18:33:38 +0000 (14:33 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 10 May 2012 18:34:31 +0000 (14:34 -0400)
ustfork.c:112:38: warning: use of GNU old-style field designator extension
      [-Wgnu-designator]
                struct ustfork_clone_info info = { fn: fn, arg: arg };
                                                   ^~~
                                                   .fn =
ustfork.c:112:46: warning: use of GNU old-style field designator extension
      [-Wgnu-designator]
                struct ustfork_clone_info info = { fn: fn, arg: arg };
                                                           ^~~~
                                                           .arg =

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
liblttng-ust-fork/ustfork.c

index ac191971fd7b18cca7143fd79f5c1efeec00fcaf..9ed087c2eff59bc1b6dd53f37e9d6f5ce9b7e555 100644 (file)
@@ -107,7 +107,7 @@ int clone(int (*fn)(void *), void *child_stack, int flags, void *arg, ...)
                                tls, ctid);
        } else {
                /* Creating a real process, we need to intervene. */
-               struct ustfork_clone_info info = { fn: fn, arg: arg };
+               struct ustfork_clone_info info = { fn = fn, arg = arg };
 
                ust_before_fork(&info.sigset);
                retval = plibc_func(clone_fn, child_stack, flags, &info,
This page took 0.024948 seconds and 4 git commands to generate.