summaryrefslogtreecommitdiff
path: root/src/repo.c
diff options
context:
space:
mode:
authorDirk Mueller <dmueller@suse.de>2009-05-28 21:45:58 +0200
committerDirk Mueller <dmueller@oldboy.suse.de>2009-05-28 21:45:58 +0200
commitfc1f7f7f56be81440279831ceb9bb9ba5649f7bf (patch)
treea0b5c87a9eafea30c13d12654fa96e040e671bfb /src/repo.c
parent80668d4a0495b440b6650935665831b5a91ce762 (diff)
downloadlibsolv-fc1f7f7f56be81440279831ceb9bb9ba5649f7bf.tar.gz
libsolv-fc1f7f7f56be81440279831ceb9bb9ba5649f7bf.tar.bz2
libsolv-fc1f7f7f56be81440279831ceb9bb9ba5649f7bf.zip
void* arithmetics is not defined
Diffstat (limited to 'src/repo.c')
-rw-r--r--src/repo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/repo.c b/src/repo.c
index fce998f..4fc38b7 100644
--- a/src/repo.c
+++ b/src/repo.c
@@ -334,7 +334,7 @@ repo_sidedata_extend(Repo *repo, void *b, size_t size, Id p, int count)
{
int d = repo->start - p;
b = sat_extend(b, n, d, size, REPO_SIDEDATA_BLOCK);
- memmove(b + d * size, b, n * size);
+ memmove((char*)b + d * size, b, n * size);
memset(b, 0, d * size);
n += d;
}
@@ -342,7 +342,7 @@ repo_sidedata_extend(Repo *repo, void *b, size_t size, Id p, int count)
{
int d = p + count - repo->end;
b = sat_extend(b, n, d, size, REPO_SIDEDATA_BLOCK);
- memset(b + n * size, 0, d * size);
+ memset((char*)b + n * size, 0, d * size);
}
return b;
}