diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-03-17 09:05:21 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-03-17 09:05:21 +0000 |
commit | d02db892440499a072ea8c83c2370e9d9c103098 (patch) | |
tree | 3b91afcc3cc91b485e23807d75c546b2b73b1940 /e2fsprogs | |
parent | 85c247161b9e1e7c71ebcb874ed7b6a23b6a5b50 (diff) | |
download | busybox-d02db892440499a072ea8c83c2370e9d9c103098.tar.gz |
clean up TODO file. No real code changes.
Diffstat (limited to 'e2fsprogs')
-rw-r--r-- | e2fsprogs/old_e2fsprogs/blkid/cache.c | 3 | ||||
-rw-r--r-- | e2fsprogs/old_e2fsprogs/blkid/dev.c | 3 | ||||
-rw-r--r-- | e2fsprogs/old_e2fsprogs/blkid/tag.c | 3 |
3 files changed, 3 insertions, 6 deletions
diff --git a/e2fsprogs/old_e2fsprogs/blkid/cache.c b/e2fsprogs/old_e2fsprogs/blkid/cache.c index 9bae6fb67..d1d29146b 100644 --- a/e2fsprogs/old_e2fsprogs/blkid/cache.c +++ b/e2fsprogs/old_e2fsprogs/blkid/cache.c @@ -35,8 +35,7 @@ int blkid_get_cache(blkid_cache *ret_cache, const char *filename) DBG(DEBUG_CACHE, printf("creating blkid cache (using %s)\n", filename ? filename : "default cache")); - if (!(cache = (blkid_cache) calloc(1, sizeof(struct blkid_struct_cache)))) - return -BLKID_ERR_MEM; + cache = xzalloc(sizeof(struct blkid_struct_cache)); INIT_LIST_HEAD(&cache->bic_devs); INIT_LIST_HEAD(&cache->bic_tags); diff --git a/e2fsprogs/old_e2fsprogs/blkid/dev.c b/e2fsprogs/old_e2fsprogs/blkid/dev.c index f6503f179..bb0cc914a 100644 --- a/e2fsprogs/old_e2fsprogs/blkid/dev.c +++ b/e2fsprogs/old_e2fsprogs/blkid/dev.c @@ -20,8 +20,7 @@ blkid_dev blkid_new_dev(void) { blkid_dev dev; - if (!(dev = (blkid_dev) calloc(1, sizeof(struct blkid_struct_dev)))) - return NULL; + dev = xzalloc(sizeof(struct blkid_struct_dev)); INIT_LIST_HEAD(&dev->bid_devs); INIT_LIST_HEAD(&dev->bid_tags); diff --git a/e2fsprogs/old_e2fsprogs/blkid/tag.c b/e2fsprogs/old_e2fsprogs/blkid/tag.c index 006a393fa..c0a93df98 100644 --- a/e2fsprogs/old_e2fsprogs/blkid/tag.c +++ b/e2fsprogs/old_e2fsprogs/blkid/tag.c @@ -21,8 +21,7 @@ static blkid_tag blkid_new_tag(void) { blkid_tag tag; - if (!(tag = (blkid_tag) calloc(1, sizeof(struct blkid_struct_tag)))) - return NULL; + tag = xzalloc(sizeof(struct blkid_struct_tag)); INIT_LIST_HEAD(&tag->bit_tags); INIT_LIST_HEAD(&tag->bit_names); |