viking

webkit based web browser for Enlightenment
Log | Files | Refs | LICENSE

commit 49aa2c62e09bc2c599fb4c59b6cd55bbc03ca481
parent 471a2c5ce580355c83daccb34451340360ba305c
Author: Kyle Milz <kmilz@ucalgary.ca>
Date:   Sun, 14 Oct 2012 09:25:18 -0600

fix formatting on make_keylist function

Diffstat:
Msrc/utilities.c | 37++++++++++++++++++-------------------
1 file changed, 18 insertions(+), 19 deletions(-)

diff --git a/src/utilities.c b/src/utilities.c @@ -103,27 +103,26 @@ void save_command_history(Eina_Stringshare *line, Window_Data *wd) KeyList * make_keyslist(void) { - int i; - KeyList *ptr, *current; + int i; + KeyList *ptr, *current; KeyList *keylistroot = NULL; - ptr = NULL; - current = NULL; - i = 0; - while ( keys[i].key != 0 ) - { - current = malloc(sizeof(KeyList)); - if (current == NULL) { - printf("Not enough memory\n"); - exit(-1); - } - current->Element = keys[i]; - current->next = NULL; - if (keylistroot == NULL) keylistroot = current; - if (ptr != NULL) ptr->next = current; - ptr = current; - i++; - } + ptr = NULL; + current = NULL; + i = 0; + while ( keys[i].key != 0 ) { + current = malloc(sizeof(KeyList)); + if (current == NULL) { + printf("Not enough memory\n"); + exit(-1); + } + current->Element = keys[i]; + current->next = NULL; + if (keylistroot == NULL) keylistroot = current; + if (ptr != NULL) ptr->next = current; + ptr = current; + i++; + } // printf("make_keylist() processed %i keys.\n", i); return keylistroot;