diff options
author | Guillermo Ramos | 2011-09-16 19:38:44 +0200 |
---|---|---|
committer | Guillermo Ramos | 2011-09-16 19:38:44 +0200 |
commit | 74ed96bd35757bc4446c6f42ac48ae09638b5e72 (patch) | |
tree | ea2f46b1690203f000e8d68daf7f3c77dba1790a /khashmap/khashmap.c | |
parent | 5f78bdac09842192ad1cae0f0e516e9020619ac7 (diff) | |
download | evspy-74ed96bd35757bc4446c6f42ac48ae09638b5e72.tar.gz |
One file for each keyboard layout. Shift implemented on spanish layout
Diffstat (limited to 'khashmap/khashmap.c')
-rw-r--r-- | khashmap/khashmap.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/khashmap/khashmap.c b/khashmap/khashmap.c index 0a1360d..fac95f7 100644 --- a/khashmap/khashmap.c +++ b/khashmap/khashmap.c @@ -55,7 +55,7 @@ void khm_display(struct khashmap *head) } } -struct khashmap *khm_create(void) +inline struct khashmap *khm_create(void) { struct khashmap *head; @@ -64,8 +64,6 @@ struct khashmap *khm_create(void) return NULL; INIT_LIST_HEAD(&head->l); - head->value = 0; - head->data = NULL; return head; } @@ -98,8 +96,6 @@ int khm_insert(struct khashmap *head, int value, void *data) new->value = value; new->data = data; - - INIT_LIST_HEAD(&new->l); list_add_tail(&new->l, &head->l); return 0; |