diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2011-12-14 13:42:21 +0100 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2011-12-14 13:42:21 +0100 |
commit | e723c1697c0ec3c0eecbf3797d6c16c69b3cf4ef (patch) | |
tree | 1fceedace50a32ad63745981b5182a760387ed44 /src/config.c | |
parent | b952910cafdf565b11bfc171a7028bff5206dbf5 (diff) | |
download | pa-sink-ctl-e723c1697c0ec3c0eecbf3797d6c16c69b3cf4ef.tar.gz pa-sink-ctl-e723c1697c0ec3c0eecbf3797d6c16c69b3cf4ef.tar.bz2 pa-sink-ctl-e723c1697c0ec3c0eecbf3797d6c16c69b3cf4ef.zip |
Increase warning leaves, and fix new occured ones
Diffstat (limited to 'src/config.c')
-rw-r--r-- | src/config.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/config.c b/src/config.c index 96fba47..41dad73 100644 --- a/src/config.c +++ b/src/config.c @@ -29,8 +29,7 @@ parse_priorities(struct config *cfg) { gchar **groups; struct priority p; - int i; - gsize length; + gsize i, length; GError *error = NULL; groups = g_key_file_get_groups(cfg->keyfile, &length); @@ -124,7 +123,7 @@ read_input_mappings(struct config *cfg) return -1; for (i = 0; command_cbs[i].command; ++i) { - char *attrib = command_cbs[i].command; + const char *attrib = command_cbs[i].command; error = NULL; list = g_key_file_get_string_list(cfg->keyfile, "input", @@ -160,7 +159,7 @@ config_init(struct config *cfg) const gchar *home_dirs[] = { g_get_user_config_dir(), NULL }; const gchar * const * dirs_array[] = { home_dirs, g_get_system_config_dirs() }; GError *error; - int i; + gsize i; memset(cfg, 0, sizeof *cfg); cfg->keyfile = g_key_file_new(); |