Mercurial > ~mikael > mcabber > hg
comparison mcabber/src/settings.c @ 393:f8f3c7493457
Whitespace cleanup
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Thu, 04 Aug 2005 23:04:54 +0100 |
parents | 2e6c7b1440d1 |
children | cc8c969ab6e5 |
comparison
equal
deleted
inserted
replaced
392:6329c9601704 | 393:f8f3c7493457 |
---|---|
1 /* | 1 /* |
2 * settings.c -- Configuration stuff | 2 * settings.c -- Configuration stuff |
3 * | 3 * |
4 * Copyright (C) 2005 Mikael Berthe <bmikael@lists.lilotux.net> | 4 * Copyright (C) 2005 Mikael Berthe <bmikael@lists.lilotux.net> |
5 * | 5 * |
6 * This program is free software; you can redistribute it and/or modify | 6 * This program is free software; you can redistribute it and/or modify |
7 * it under the terms of the GNU General Public License as published by | 7 * it under the terms of the GNU General Public License as published by |
8 * the Free Software Foundation; either version 2 of the License, or (at | 8 * the Free Software Foundation; either version 2 of the License, or (at |
48 | 48 |
49 // Return a pointer to the node with the requested key, or NULL if none found | 49 // Return a pointer to the node with the requested key, or NULL if none found |
50 static GSList *settings_find(GSList *list, const gchar *key) | 50 static GSList *settings_find(GSList *list, const gchar *key) |
51 { | 51 { |
52 GSList *ptr; | 52 GSList *ptr; |
53 | 53 |
54 if (!list) return NULL; | 54 if (!list) return NULL; |
55 | 55 |
56 for (ptr = list ; ptr; ptr = g_slist_next(ptr)) | 56 for (ptr = list ; ptr; ptr = g_slist_next(ptr)) |
57 if (!strcasecmp(key, ((T_setting*)ptr->data)->name)) | 57 if (!strcasecmp(key, ((T_setting*)ptr->data)->name)) |
58 break; | 58 break; |