summaryrefslogtreecommitdiff
path: root/src/poolvendor.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/poolvendor.c')
-rw-r--r--src/poolvendor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/poolvendor.c b/src/poolvendor.c
index a52a94b..ec25f9d 100644
--- a/src/poolvendor.c
+++ b/src/poolvendor.c
@@ -89,7 +89,7 @@ pool_setvendorclasses(Pool *pool, const char **vendorclasses)
{
for (v = pool->vendorclasses; v[0] || v[1]; v++)
solv_free((void *)*v);
- pool->vendorclasses = solv_free(pool->vendorclasses);
+ pool->vendorclasses = solv_free((void *)pool->vendorclasses);
}
if (!vendorclasses || !vendorclasses[0])
return;
@@ -120,7 +120,7 @@ pool_addvendorclass(Pool *pool, const char **vendorclass)
if (i)
i++;
}
- pool->vendorclasses = solv_realloc2(pool->vendorclasses, i + j + 2, sizeof(const char *));
+ pool->vendorclasses = solv_realloc2((void *)pool->vendorclasses, i + j + 2, sizeof(const char *));
for (j = 0; vendorclass[j]; j++)
pool->vendorclasses[i++] = solv_strdup(vendorclass[j]);
pool->vendorclasses[i++] = 0;