mcabber/src/settings.c
changeset 393 f8f3c7493457
parent 378 2e6c7b1440d1
child 521 cc8c969ab6e5
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;