diff options
Diffstat (limited to 'archival')
-rw-r--r-- | archival/dpkg.c | 4 | ||||
-rw-r--r-- | archival/gzip.c | 2 | ||||
-rw-r--r-- | archival/libunarchive/decompress_unzip.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/archival/dpkg.c b/archival/dpkg.c index 3ff6249d9..5535c15a1 100644 --- a/archival/dpkg.c +++ b/archival/dpkg.c @@ -582,7 +582,7 @@ static unsigned fill_package_struct(char *control_buffer) "Conflicts", "Suggests", "Recommends", "Enhances", 0 }; - common_node_t *new_node = (common_node_t *) xzalloc(sizeof(common_node_t)); + common_node_t *new_node = xzalloc(sizeof(common_node_t)); char *field_name; char *field_value; int field_start = 0; @@ -981,7 +981,7 @@ static int check_deps(deb_file_t **deb_file, int deb_start, int dep_max_count) package_hashtable[package_num]->edge[j]->operator); if (package_hashtable[conflicts_package_num] == NULL) { /* create a new package */ - common_node_t *new_node = (common_node_t *) xzalloc(sizeof(common_node_t)); + common_node_t *new_node = xzalloc(sizeof(common_node_t)); new_node->name = package_hashtable[package_num]->edge[j]->name; new_node->version = package_hashtable[package_num]->edge[j]->version; package_hashtable[conflicts_package_num] = new_node; diff --git a/archival/gzip.c b/archival/gzip.c index 5966c08e4..f4aea3f59 100644 --- a/archival/gzip.c +++ b/archival/gzip.c @@ -92,7 +92,7 @@ typedef unsigned long ulg; # define DECLARE(type, array, size) static type * array # define ALLOC(type, array, size) { \ - array = (type*)xzalloc((size_t)(((size)+1L)/2) * 2*sizeof(type)); \ + array = xzalloc((size_t)(((size)+1L)/2) * 2*sizeof(type)); \ } # define FREE(array) {free(array), array=NULL;} diff --git a/archival/libunarchive/decompress_unzip.c b/archival/libunarchive/decompress_unzip.c index 621d84c2d..38262608d 100644 --- a/archival/libunarchive/decompress_unzip.c +++ b/archival/libunarchive/decompress_unzip.c @@ -275,7 +275,7 @@ int huft_build(unsigned int *b, const unsigned int n, ws[htl+1] = w + j; /* set bits decoded in stack */ /* allocate and link in new table */ - q = (huft_t *) xzalloc((z + 1) * sizeof(huft_t)); + q = xzalloc((z + 1) * sizeof(huft_t)); *t = q + 1; /* link to list for huft_free() */ t = &(q->v.t); u[htl] = ++q; /* table starts after link */ |