From 65287557846ee845a1f0d4eb78a11af9139aaa0d Mon Sep 17 00:00:00 2001 From: Olliver Schinagl Date: Mon, 18 May 2015 16:01:44 +0200 Subject: [griffin.display] Creating an initial list is not needed Initially I made mount->mounts (the self list pointing pointer) an Eina_List *, and while this worked, it was wrong. It also required to have a dummy first entry to actually create the list so we could pass it around properly. The proper fix was to use a pointer to the Eina_List, and with the proper use the initial entry is no longer needed and thus no strange things need to be created around it to deal with the sentinel. Signed-off-by: Olliver Schinagl --- src/eulogium.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/eulogium.c b/src/eulogium.c index 40ffe49..b00a695 100644 --- a/src/eulogium.c +++ b/src/eulogium.c @@ -1127,16 +1127,10 @@ Evas_Object *eulogium_main_menu(Evas_Object *window, struct eulogium_data *eulog static void eulogium_setup(struct eulogium_data *eulogium) { - struct mount_data *mount; - while (screen_data.screen[screen_data.count].type != END) screen_data.count++; - /* eina_list_append() appends data to an existing list, or creates a new list. We need to know the location - * of the list beforehand and thus we need to create a list with a dummy entry */ - mount = calloc(1, sizeof(struct mount_data)); - mount->id = "sentinel"; - eulogium->mounts = eina_list_append(NULL, mount); + eulogium->mounts = NULL; eulogium->progress_data_refresh = NULL; eulogium->print.name = NULL; eulogium->print.file = NULL; -- cgit v0.12