win32 fixes

This commit is contained in:
Ron Pedde
2006-03-29 22:02:42 +00:00
parent 5c24ad2d02
commit 970a75f00e
4 changed files with 20 additions and 31 deletions

View File

@@ -1096,7 +1096,7 @@ char *conf_implode(char *section, char *key, char *delimiter) {
if(penum->type != LL_TYPE_STRING) {
DPRINTF(E_FATAL,L_CONF,"multivalued property not a string?\n");
}
len += strlen(penum->value.as_string);
len += (int)strlen(penum->value.as_string);
count++;
}
@@ -1105,7 +1105,7 @@ char *conf_implode(char *section, char *key, char *delimiter) {
return NULL;
}
len += (strlen(delimiter) * (count-1));
len += ((int)strlen(delimiter) * (count-1));
retval = (char*)malloc(len + 1);
if(!retval) {
DPRINTF(E_FATAL,L_CONF,"conf_implode: malloc\n");

View File

@@ -451,7 +451,7 @@ static struct RB_ENTRY(node) *
RB_ENTRY(_lookup)(int mode, const RB_ENTRY(data_t) *key, struct RB_ENTRY(tree) *rbinfo)
{
struct RB_ENTRY(node) *x,*y;
int cmp=0;;
int cmp=0;
int found=0;
y=RBNULL; /* points to the parent of x */