From 49a4acefd0905cd95253f91d3781c758999847c3 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Tue, 25 Feb 2014 11:25:25 -0500 Subject: [PATCH] Cleanup: add brackets to lttng-live-plugin.c Signed-off-by: Mathieu Desnoyers --- formats/lttng-live/lttng-live-plugin.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/formats/lttng-live/lttng-live-plugin.c b/formats/lttng-live/lttng-live-plugin.c index 1d0e0aa0..83c04582 100644 --- a/formats/lttng-live/lttng-live-plugin.c +++ b/formats/lttng-live/lttng-live-plugin.c @@ -102,8 +102,9 @@ int parse_url(const char *path, struct lttng_live_ctx *ctx) } } - if (ctx->port < 0) + if (ctx->port < 0) { ctx->port = LTTNG_DEFAULT_NETWORK_VIEWER_PORT; + } if (strlen(remain[2]) == 0) { printf_verbose("Connecting to hostname : %s, port : %d, " @@ -172,8 +173,9 @@ static int lttng_live_open_trace_read(const char *path) goto end_free; } - if (ctx->session_ids->len > 0) + if (ctx->session_ids->len > 0) { lttng_live_read(ctx); + } end_free: g_hash_table_destroy(ctx->session->ctf_traces); -- 2.34.1