summaryrefslogtreecommitdiff
path: root/src/poolarch.c
diff options
context:
space:
mode:
authorMichael Schroeder <mls@suse.de>2008-01-09 11:55:50 +0000
committerMichael Schroeder <mls@suse.de>2008-01-09 11:55:50 +0000
commitd9c1b4ab713720b5cd6d30716fed01c80f636b10 (patch)
treebb59b5e146f76445e20460cf69f07831c87ac100 /src/poolarch.c
parent824a9d3ea9f94257a0bb7577f395691231d81a0e (diff)
downloadlibsolv-d9c1b4ab713720b5cd6d30716fed01c80f636b10.tar.gz
libsolv-d9c1b4ab713720b5cd6d30716fed01c80f636b10.tar.bz2
libsolv-d9c1b4ab713720b5cd6d30716fed01c80f636b10.zip
- rename xmalloc/... functions to sat_malloc, as we're a
library and mustn't conflict with other libraries
Diffstat (limited to 'src/poolarch.c')
-rw-r--r--src/poolarch.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/poolarch.c b/src/poolarch.c
index 5755fda..7f4fa97 100644
--- a/src/poolarch.c
+++ b/src/poolarch.c
@@ -46,7 +46,7 @@ pool_setarch(Pool *pool, const char *arch)
Id *id2arch;
Id id, lastarch;
- pool->id2arch = xfree(pool->id2arch);
+ pool->id2arch = sat_free(pool->id2arch);
if (!arch)
{
pool->lastarch = 0;
@@ -54,7 +54,7 @@ pool_setarch(Pool *pool, const char *arch)
}
id = ARCH_NOARCH;
lastarch = id + 255;
- id2arch = xcalloc(lastarch + 1, sizeof(Id));
+ id2arch = sat_calloc(lastarch + 1, sizeof(Id));
id2arch[id] = 1;
a = "";
@@ -74,7 +74,7 @@ pool_setarch(Pool *pool, const char *arch)
id = str2id(pool, buf, 1);
if (id > lastarch)
{
- id2arch = xrealloc(id2arch, (id + 255 + 1) * sizeof(Id));
+ id2arch = sat_realloc(id2arch, (id + 255 + 1) * sizeof(Id));
memset(id2arch + lastarch + 1, 0, (id + 255 - lastarch) * sizeof(Id));
lastarch = id + 255;
}