mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-09 13:39:47 -05:00
win32 fixes
This commit is contained in:
@@ -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");
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user