diff options
author | Arnavion <arnavion@gmail.com> | 2014-12-04 04:06:38 -0800 |
---|---|---|
committer | Arnavion <arnavion@gmail.com> | 2014-12-04 04:06:38 -0800 |
commit | 8062bce835681d8200666ad183fe8cf3f6d87468 (patch) | |
tree | e81450df3b1b71d763695c9832edb3ffca265255 /plugins/mpcinfo/oggInfo.c | |
parent | 3fbe5b876e3af3fde135eb42bcd3050b41865d1a (diff) |
Fix some obvious type warnings.
Diffstat (limited to 'plugins/mpcinfo/oggInfo.c')
-rw-r--r-- | plugins/mpcinfo/oggInfo.c | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/plugins/mpcinfo/oggInfo.c b/plugins/mpcinfo/oggInfo.c index 59d84791..e1191649 100644 --- a/plugins/mpcinfo/oggInfo.c +++ b/plugins/mpcinfo/oggInfo.c @@ -25,14 +25,18 @@ static int getOggInt(char *buff, int beg, int bytes){ return ret; } -static char *upperStr(char *text){ -//if (DEBUG==1) putlog("converting text to uc"); - //printf("upperStr(%s)\n",text); - int i; - char *ret=(char*) malloc(sizeof(char)*(strlen(text)+1)); - ret[strlen(text)]=0; - for (i=0;i<strlen(text);i++) ret[i]=toupper(text[i]); - //printf("Result: %s\n",ret); +static char *upperStr(char *text) +{ + char *ret = (char*) malloc(sizeof(char)*(strlen(text) + 1)); + + size_t i; + for (i = 0; i < strlen(text); i++) + { + ret[i] = toupper(text[i]); + } + + ret[strlen(text)] = 0; + return ret; } |