summaryrefslogtreecommitdiff
path: root/src/bitmap.c
diff options
context:
space:
mode:
authorMichael Schroeder <mls@suse.de>2007-10-15 11:06:02 +0000
committerMichael Schroeder <mls@suse.de>2007-10-15 11:06:02 +0000
commitef55e590661e3efbe9470193c6f2baf0fd8d753f (patch)
tree2dc0e31576ef0b17517441cd48e95da882b1eac0 /src/bitmap.c
parentfd66530c72c759caf10d25878a97f976fd048121 (diff)
downloadlibsolv-ef55e590661e3efbe9470193c6f2baf0fd8d753f.tar.gz
libsolv-ef55e590661e3efbe9470193c6f2baf0fd8d753f.tar.bz2
libsolv-ef55e590661e3efbe9470193c6f2baf0fd8d753f.zip
make prune_to_recommended look at recommends, too.
Diffstat (limited to 'src/bitmap.c')
-rw-r--r--src/bitmap.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/bitmap.c b/src/bitmap.c
index e8ce806..0ebd2d9 100644
--- a/src/bitmap.c
+++ b/src/bitmap.c
@@ -7,20 +7,20 @@
#include <string.h>
#include "bitmap.h"
+#include "util.h"
void
mapinit(Map *m, int n)
{
m->size = (n + 7) >> 3;
- m->map = calloc(m->size, 1);
+ m->map = xcalloc(m->size, 1);
}
// free space allocated
void
mapfree(Map *m)
{
- free(m->map);
- m->map = 0;
+ m->map = xfree(m->map);
m->size = 0;
}
@@ -29,7 +29,7 @@ void
clonemap(Map *t, Map *s)
{
t->size = s->size;
- t->map = malloc(s->size);
+ t->map = xmalloc(s->size);
memcpy(t->map, s->map, t->size);
}