From: Nils Carlson Date: Fri, 14 Jan 2011 21:08:59 +0000 (+0100) Subject: Fix a minor ugliness X-Git-Tag: v0.11~1 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=49d70d5aa7bc256392cc32127616c311c69cdd92;p=ust.git Fix a minor ugliness Variable was defined in middle of a block --- diff --git a/libust/tracectl.c b/libust/tracectl.c index b73fa7c..e877e62 100644 --- a/libust/tracectl.c +++ b/libust/tracectl.c @@ -1232,6 +1232,7 @@ free_name: static void __attribute__((constructor)) init() { + struct timespec ts; int result; char* autoprobe_val = NULL; char* subbuffer_size_val = NULL; @@ -1266,7 +1267,7 @@ static void __attribute__((constructor)) init() create_listener(); /* Get clock the clock source type */ - struct timespec ts; + /* Default clock source */ ust_clock_source = CLOCK_TRACE; if (clock_gettime(ust_clock_source, &ts) != 0) {