aboutsummaryrefslogtreecommitdiffstats
path: root/src/conf.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-06-03 06:55:09 +0200
committerMax Kellermann <max@duempel.org>2009-06-03 06:55:09 +0200
commit70d7c795466b8074acfed36fd54e114749cac9d8 (patch)
treedc57c13428a7b033b4588021027d6353010b67ef /src/conf.c
parentddc2694419442b68eac4c04069c991ecd2fa26ee (diff)
downloadmpd-70d7c795466b8074acfed36fd54e114749cac9d8.tar.gz
mpd-70d7c795466b8074acfed36fd54e114749cac9d8.tar.xz
mpd-70d7c795466b8074acfed36fd54e114749cac9d8.zip
conf: make config_param.num_block_params unsigned
Diffstat (limited to 'src/conf.c')
-rw-r--r--src/conf.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/conf.c b/src/conf.c
index 50d6bcba0..cce7dbf27 100644
--- a/src/conf.c
+++ b/src/conf.c
@@ -91,11 +91,10 @@ static void
config_param_free(gpointer data, G_GNUC_UNUSED gpointer user_data)
{
struct config_param *param = data;
- int i;
g_free(param->value);
- for (i = 0; i < param->num_block_params; i++) {
+ for (unsigned i = 0; i < param->num_block_params; i++) {
g_free(param->block_params[i].name);
g_free(param->block_params[i].value);
}
@@ -449,12 +448,11 @@ struct block_param *
config_get_block_param(const struct config_param * param, const char *name)
{
struct block_param *ret = NULL;
- int i;
if (param == NULL)
return NULL;
- for (i = 0; i < param->num_block_params; i++) {
+ for (unsigned i = 0; i < param->num_block_params; i++) {
if (0 == strcmp(name, param->block_params[i].name)) {
if (ret) {
g_warning("\"%s\" first defined on line %i, and "