diff options
author | Max Kellermann <max@duempel.org> | 2008-09-15 12:27:26 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-09-15 12:27:26 +0200 |
commit | 6d3b7cdd62d798521d73ac58d57bd67061d64ba5 (patch) | |
tree | 196aff7bf983541fd2519ca40b92dbeb7acec8b3 /src/utils.c | |
parent | 1cd28efa96dbc3d49a43d9b12c5b65d493baf949 (diff) | |
download | mpd-6d3b7cdd62d798521d73ac58d57bd67061d64ba5.tar.gz mpd-6d3b7cdd62d798521d73ac58d57bd67061d64ba5.tar.xz mpd-6d3b7cdd62d798521d73ac58d57bd67061d64ba5.zip |
code style, indent with tabs
Follow the same code style als MPD itself. This patch only fixes
parts of the code which are going to be touched in the following bunch
of patches, i.e. there will be more "code style" patches in the
future.
Diffstat (limited to 'src/utils.c')
-rw-r--r-- | src/utils.c | 35 |
1 files changed, 16 insertions, 19 deletions
diff --git a/src/utils.c b/src/utils.c index 404484ef4..014136480 100644 --- a/src/utils.c +++ b/src/utils.c @@ -50,33 +50,30 @@ string_list_free(GList *string_list) GList * string_list_find(GList *string_list, gchar *str) { - GList *list = g_list_first(string_list); + GList *list = g_list_first(string_list); - while(list) - { - if( strcmp(str, (gchar *) list->data) == 0 ) - return list; - list = list->next; - } - return NULL; + while(list) { + if( strcmp(str, (gchar *) list->data) == 0 ) + return list; + list = list->next; + } + return NULL; } GList * string_list_remove(GList *string_list, gchar *str) { - GList *list = g_list_first(string_list); + GList *list = g_list_first(string_list); - while(list) - { - if( strcmp(str, (gchar *) list->data) == 0 ) - { - g_free(list->data); - list->data = NULL; - return g_list_delete_link(string_list, list); + while(list) { + if( strcmp(str, (gchar *) list->data) == 0 ) { + g_free(list->data); + list->data = NULL; + return g_list_delete_link(string_list, list); + } + list = list->next; } - list = list->next; - } - return list; + return list; } /* create a list suiteble for GCompletion from path */ |