equal
deleted
inserted
replaced
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; |