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:33:38 +0000 (14:33 -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 8fade56e84c5413bd30c679d7f3fd5c30b4e3c70..2e4c8a8fb73c167acbf1d7ade1f01e4698daf7f0 100644 (file)
@@ -109,7 +109,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.025092 seconds and 4 git commands to generate.