aboutsummaryrefslogtreecommitdiff
path: root/archival
diff options
context:
space:
mode:
Diffstat (limited to 'archival')
-rw-r--r--archival/dpkg.c4
-rw-r--r--archival/gzip.c2
-rw-r--r--archival/libunarchive/decompress_unzip.c2
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)
582 "Conflicts", "Suggests", "Recommends", "Enhances", 0 582 "Conflicts", "Suggests", "Recommends", "Enhances", 0
583 }; 583 };
584 584
585 common_node_t *new_node = (common_node_t *) xzalloc(sizeof(common_node_t)); 585 common_node_t *new_node = xzalloc(sizeof(common_node_t));
586 char *field_name; 586 char *field_name;
587 char *field_value; 587 char *field_value;
588 int field_start = 0; 588 int field_start = 0;
@@ -981,7 +981,7 @@ static int check_deps(deb_file_t **deb_file, int deb_start, int dep_max_count)
981 package_hashtable[package_num]->edge[j]->operator); 981 package_hashtable[package_num]->edge[j]->operator);
982 if (package_hashtable[conflicts_package_num] == NULL) { 982 if (package_hashtable[conflicts_package_num] == NULL) {
983 /* create a new package */ 983 /* create a new package */
984 common_node_t *new_node = (common_node_t *) xzalloc(sizeof(common_node_t)); 984 common_node_t *new_node = xzalloc(sizeof(common_node_t));
985 new_node->name = package_hashtable[package_num]->edge[j]->name; 985 new_node->name = package_hashtable[package_num]->edge[j]->name;
986 new_node->version = package_hashtable[package_num]->edge[j]->version; 986 new_node->version = package_hashtable[package_num]->edge[j]->version;
987 package_hashtable[conflicts_package_num] = new_node; 987 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;
92 92
93# define DECLARE(type, array, size) static type * array 93# define DECLARE(type, array, size) static type * array
94# define ALLOC(type, array, size) { \ 94# define ALLOC(type, array, size) { \
95 array = (type*)xzalloc((size_t)(((size)+1L)/2) * 2*sizeof(type)); \ 95 array = xzalloc((size_t)(((size)+1L)/2) * 2*sizeof(type)); \
96 } 96 }
97# define FREE(array) {free(array), array=NULL;} 97# define FREE(array) {free(array), array=NULL;}
98 98
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,
275 ws[htl+1] = w + j; /* set bits decoded in stack */ 275 ws[htl+1] = w + j; /* set bits decoded in stack */
276 276
277 /* allocate and link in new table */ 277 /* allocate and link in new table */
278 q = (huft_t *) xzalloc((z + 1) * sizeof(huft_t)); 278 q = xzalloc((z + 1) * sizeof(huft_t));
279 *t = q + 1; /* link to list for huft_free() */ 279 *t = q + 1; /* link to list for huft_free() */
280 t = &(q->v.t); 280 t = &(q->v.t);
281 u[htl] = ++q; /* table starts after link */ 281 u[htl] = ++q; /* table starts after link */