summaryrefslogtreecommitdiff
path: root/archival/dpkg.c
diff options
context:
space:
mode:
authorDenis Vlasenko2006-12-22 18:37:07 +0000
committerDenis Vlasenko2006-12-22 18:37:07 +0000
commit4cccc03768ecde58e8acd5e4f40e51227e3c14cc (patch)
tree1d9ac9a483f4ca245fff9925c30a7f842d9b51ca /archival/dpkg.c
parenta6df5907d273f0fe067e82c60391d6bf9a02dd4b (diff)
downloadbusybox-4cccc03768ecde58e8acd5e4f40e51227e3c14cc.zip
busybox-4cccc03768ecde58e8acd5e4f40e51227e3c14cc.tar.gz
remove useless casts (type*) xzalloc(...)
Diffstat (limited to 'archival/dpkg.c')
-rw-r--r--archival/dpkg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/archival/dpkg.c b/archival/dpkg.c
index 3ff6249..5535c15 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;