elm calendar_example_06.c: Fixed tm structure initialization. By the
authorseoz <seoz@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 28 Mar 2012 00:52:05 +0000 (00:52 +0000)
committerseoz <seoz@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 28 Mar 2012 00:52:05 +0000 (00:52 +0000)
way, is this correct? I had build warnings before.

menu_example_01.c: In function ‘_del_it’:
menu_example_01.c:17:6: warning: assignment discards qualifiers from
pointer target type

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@69681 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/examples/calendar_example_06.c

index 1cd5a85..dce81d4 100644 (file)
@@ -32,7 +32,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
    Elm_Calendar_Mark *mark;
    struct tm selected_time;
    time_t current_time;
-   struct tm sunday = {0, 0, 12, 7, 0, 0, 0, 0, -1 };
+   struct tm sunday = { 0, 0, 12, 7, 0, 0, 0, 0, -1, 0, NULL };
    /* tm {sec, min, hour, mday, mon, year, wday, yday, isdst } */
    /* weekdays since Sunday, range 0 to 6 */
    struct tm christmas;