From 99d621caf46af5ca909aee46dd930a096cdc5f56 Mon Sep 17 00:00:00 2001 From: seoz Date: Mon, 29 Aug 2011 04:00:17 +0000 Subject: [PATCH] elm test.c: Removed wrong warnings. Fixed indentation and removed trailing whitespaces. git-svn-id: https://svn.enlightenment.org/svn/e/trunk/elementary@62929 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/bin/test.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/bin/test.c b/src/bin/test.c index 9d88a16..d5d867b 100644 --- a/src/bin/test.c +++ b/src/bin/test.c @@ -195,7 +195,8 @@ _ui_tg_changed(void *data, Evas_Object *obj, void *event_info) static void my_win_main(char *autorun, Eina_Bool test_win_only) { - Evas_Object *win, *bg, *bx0, *lb, *li, *idx, *fr, *tg; + Evas_Object *win = NULL, *bg = NULL, *bx0 = NULL, *lb = NULL, *li = NULL; + Evas_Object *idx = NULL, *fr = NULL, *tg = NULL; Eina_List *tests, *l; struct elm_test *t; @@ -435,11 +436,11 @@ add_tests: if (autorun) { EINA_LIST_FOREACH(tests, l, t) - if ((t->name) && (t->cb) && (!strcmp(t->name, autorun))) - t->cb(NULL, NULL, NULL); + if ((t->name) && (t->cb) && (!strcmp(t->name, autorun))) + t->cb(NULL, NULL, NULL); } - + if (test_win_only) return; if (tests) @@ -466,7 +467,7 @@ add_tests: evas_object_resize(win, 320, 480); /* show the window */ if (!test_win_only) - evas_object_show(win); + evas_object_show(win); } /* this is your elementary main function - it MUST be called IMMEDIATELY -- 2.7.4