Mercurial > hg > th-libs
comparison th_config.c @ 441:2991e6b52d95
Get rid of trailing whitespace.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 12 Oct 2017 17:12:50 +0300 |
parents | c42a9c3f4d55 |
children | 1920a31927b2 |
comparison
equal
deleted
inserted
replaced
440:d19bd91842c7 | 441:2991e6b52d95 |
---|---|
833 static th_cfgitem_t *th_cfg_find_do(th_cfgitem_t *item, BOOL *sect, const char *section, const char *name, const int type) | 833 static th_cfgitem_t *th_cfg_find_do(th_cfgitem_t *item, BOOL *sect, const char *section, const char *name, const int type) |
834 { | 834 { |
835 while (item != NULL) | 835 while (item != NULL) |
836 { | 836 { |
837 BOOL match = TRUE; | 837 BOOL match = TRUE; |
838 | 838 |
839 if (item->type == ITEM_SECTION) | 839 if (item->type == ITEM_SECTION) |
840 { | 840 { |
841 // Check section name if set | 841 // Check section name if set |
842 if (section != NULL && strcmp(section, item->name) == 0) | 842 if (section != NULL && strcmp(section, item->name) == 0) |
843 *sect = TRUE; | 843 *sect = TRUE; |
858 | 858 |
859 // Do we have a match? | 859 // Do we have a match? |
860 if (*sect && match) | 860 if (*sect && match) |
861 return item; | 861 return item; |
862 } | 862 } |
863 | 863 |
864 return NULL; | 864 return NULL; |
865 } | 865 } |
866 | 866 |
867 | 867 |
868 th_cfgitem_t *th_cfg_find(th_cfgitem_t *cfg, const char *section, const char *name, const int type) | 868 th_cfgitem_t *th_cfg_find(th_cfgitem_t *cfg, const char *section, const char *name, const int type) |