On Thu, Oct 31, 2013 at 01:36:39PM +0100, Arturo Borrero Gonzalez wrote: > Some style cleanups. > > Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@xxxxxxxxx> > --- > tests/nft-parsing-test.c | 34 ++++++++++++++++++++++------------ > 1 file changed, 22 insertions(+), 12 deletions(-) > > diff --git a/tests/nft-parsing-test.c b/tests/nft-parsing-test.c > index 3d26c3a..e147e79 100644 > --- a/tests/nft-parsing-test.c > +++ b/tests/nft-parsing-test.c > @@ -193,8 +193,10 @@ static int test_json(const char *filename) > if (json_object_get(root, "table") != NULL) { > t = nft_table_alloc(); > if (t != NULL) { > - if (nft_table_parse(t, NFT_TABLE_PARSE_JSON, json) == 0) > - ret = compare_test(TEST_JSON_TABLE, t, filename); > + if (nft_table_parse(t, > + NFT_TABLE_PARSE_JSON, json) == 0) > + ret = compare_test(TEST_JSON_TABLE, > + t, filename); > else > goto failparsing; If you need to break lines like this, it usually means that this code needs to be split in smaller functions. Please, send me a clean up by encapsulating the tests in new smaller functions, eg. test_json_table(). -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html