aboutsummaryrefslogtreecommitdiffstats
path: root/src/conf.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-09-15 13:27:30 +0200
committerMax Kellermann <max@duempel.org>2008-09-15 13:27:30 +0200
commite7981e0e28541e5046c40879a4fdbcc308f143ec (patch)
tree86a4fe788f692321e6a6fbaff8d83708ba764234 /src/conf.c
parent6e81a1b3e08a423c6f4c6976aecae915bd1a3f0b (diff)
downloadmpd-e7981e0e28541e5046c40879a4fdbcc308f143ec.tar.gz
mpd-e7981e0e28541e5046c40879a4fdbcc308f143ec.tar.xz
mpd-e7981e0e28541e5046c40879a4fdbcc308f143ec.zip
use size_t and unsigned integers
Diffstat (limited to '')
-rw-r--r--src/conf.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/conf.c b/src/conf.c
index 5792dd22f..b49eeb244 100644
--- a/src/conf.c
+++ b/src/conf.c
@@ -94,7 +94,8 @@ str2bool(char *str)
static int
parse_key_value(char *str, size_t len, char **end)
{
- int i, value;
+ size_t i;
+ int value;
key_parser_state_t state;
i=0;
@@ -164,8 +165,8 @@ parse_key_definition(char *str)
{
char buf[MAX_LINE_LENGTH];
char *p, *end;
- size_t len = strlen(str);
- int i,j,key;
+ size_t len = strlen(str), i;
+ int j,key;
int keys[MAX_COMMAND_KEYS];
command_t cmd;
@@ -256,8 +257,8 @@ parse_color_definition(char *str)
{
char buf[MAX_LINE_LENGTH];
char *p, *end, *name;
- size_t len = strlen(str);
- int i,j,value;
+ size_t len = strlen(str), i;
+ int j,value;
short color, rgb[3];
/* get the command name */