diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-12-19 23:36:04 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-12-19 23:36:04 +0000 |
commit | b95636c52fbb058a39548bcbc4e86456ebbd7b7b (patch) | |
tree | 0f82f8e3d225f3bcefdbf7070ae0716f1b309630 /archival | |
parent | 2375d75f3267e6e4370f221fea485eac8e73d402 (diff) | |
download | busybox-b95636c52fbb058a39548bcbc4e86456ebbd7b7b.tar.gz |
remove casts from xmalloc()
Diffstat (limited to 'archival')
-rw-r--r-- | archival/dpkg.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/archival/dpkg.c b/archival/dpkg.c index 9024d41d2..6ef04522d 100644 --- a/archival/dpkg.c +++ b/archival/dpkg.c @@ -442,7 +442,7 @@ static void add_split_dependencies(common_node_t *parent_node, const char *whole field2 = strtok_r(line2, "|", &line_ptr2); if ((edge_type == EDGE_DEPENDS || edge_type == EDGE_PRE_DEPENDS) && (strcmp(field, field2) != 0)) { - or_edge = (edge_t *)xmalloc(sizeof(edge_t)); + or_edge = xmalloc(sizeof(edge_t)); or_edge->type = edge_type + 1; } else { or_edge = NULL; @@ -456,7 +456,7 @@ static void add_split_dependencies(common_node_t *parent_node, const char *whole } do { - edge = (edge_t *) xmalloc(sizeof(edge_t)); + edge = xmalloc(sizeof(edge_t)); edge->type = edge_type; /* Skip any extra leading spaces */ @@ -1708,7 +1708,7 @@ int dpkg_main(int argc, char **argv) /* If no previous entry was found initialise a new entry */ if ((status_hashtable[status_num] == NULL) || (status_hashtable[status_num]->status == 0)) { - status_node = (status_node_t *) xmalloc(sizeof(status_node_t)); + status_node = xmalloc(sizeof(status_node_t)); status_node->package = deb_file[deb_count]->package; /* reinstreq isnt changed to "ok" until the package control info * is written to the status file*/ |