diff options
author | Joseph Herlant <herlantj@gmail.com> | 2018-05-25 22:06:51 -0700 |
---|---|---|
committer | Joseph Herlant <aerostitch@users.noreply.github.com> | 2018-05-25 22:17:50 -0700 |
commit | 8a76acb966f7059caf9d72c853175bd923b1e9d7 (patch) | |
tree | 1735178f7a0718831b88d2c36ea18a9955de3224 /navit/atom.c | |
parent | 032f15287b472f1a4b5349533f3e5b468684b281 (diff) | |
download | navit-8a76acb966f7059caf9d72c853175bd923b1e9d7.tar.gz |
cleanup:global:Use astyle to reformat everything
Diffstat (limited to 'navit/atom.c')
-rw-r--r-- | navit/atom.c | 33 |
1 files changed, 15 insertions, 18 deletions
diff --git a/navit/atom.c b/navit/atom.c index de11ce8bc..3a95f455b 100644 --- a/navit/atom.c +++ b/navit/atom.c @@ -4,28 +4,25 @@ static GHashTable *atom_hash; char * -atom_lookup(char *name) -{ - if (!atom_hash) - return NULL; - return g_hash_table_lookup(atom_hash,name); +atom_lookup(char *name) { + if (!atom_hash) + return NULL; + return g_hash_table_lookup(atom_hash,name); } char * -atom(char *name) -{ - char *id=atom_lookup(name); - if (id) - return id; - if (!atom_hash) - return NULL; - id=g_strdup(name); - g_hash_table_insert(atom_hash, id, id); - return id; +atom(char *name) { + char *id=atom_lookup(name); + if (id) + return id; + if (!atom_hash) + return NULL; + id=g_strdup(name); + g_hash_table_insert(atom_hash, id, id); + return id; } void -atom_init(void) -{ - atom_hash=g_hash_table_new(g_str_hash, g_str_equal); +atom_init(void) { + atom_hash=g_hash_table_new(g_str_hash, g_str_equal); } |