From: Benjamin Poirier Date: Mon, 19 Oct 2009 19:33:04 +0000 (-0400) Subject: Fix shady indentation X-Git-Tag: v0.12.20~10 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=29a81f1a26ea018a60c96cadef87e483559b16b9;p=lttv.git Fix shady indentation What are you trying to hide? Signed-off-by: Benjamin Poirier --- diff --git a/lttv/modules/text/textFilter.c b/lttv/modules/text/textFilter.c index 28b5c8ee..73947b3f 100644 --- a/lttv/modules/text/textFilter.c +++ b/lttv/modules/text/textFilter.c @@ -83,16 +83,15 @@ void filter_analyze_file(void *hook_data) { g_file_get_contents(a_file_name,&a_file_content,NULL,NULL); - - if(((GString*)*(value.v_pointer))->len != 0) - g_string_append_c((GString*)*(value.v_pointer),'&'); - g_string_append_c((GString*)*(value.v_pointer),'('); - g_string_append((GString*)*(value.v_pointer),a_file_content); - g_string_append_c((GString*)*(value.v_pointer),')'); - retval= lttv_iattribute_find_by_path(attributes, "filter/expression", LTTV_POINTER, &value); g_assert(retval); + + if (((GString*)*(value.v_pointer))->len != 0) + g_string_append_c((GString*)*(value.v_pointer),'&'); + g_string_append_c((GString*)*(value.v_pointer),'('); + g_string_append((GString*)*(value.v_pointer),a_file_content); + g_string_append_c((GString*)*(value.v_pointer),')'); } /** @@ -111,16 +110,15 @@ void filter_analyze_string(void *hook_data) { * and/or command line string. From these sources, an * option string is rebuilded and sent to the filter core */ - - if(((GString*)*(value.v_pointer))->len != 0) - g_string_append_c((GString*)*(value.v_pointer),'&'); - g_string_append_c((GString*)*(value.v_pointer),'('); - g_string_append((GString*)*(value.v_pointer),a_string); - g_string_append_c((GString*)*(value.v_pointer),')'); - retval= lttv_iattribute_find_by_path(attributes, "filter/expression", LTTV_POINTER, &value); g_assert(retval); + + if (((GString*)*(value.v_pointer))->len != 0) + g_string_append_c((GString*)*(value.v_pointer),'&'); + g_string_append_c((GString*)*(value.v_pointer),'('); + g_string_append((GString*)*(value.v_pointer),a_string); + g_string_append_c((GString*)*(value.v_pointer),')'); } /**