aboutsummaryrefslogtreecommitdiff
path: root/archival
diff options
context:
space:
mode:
Diffstat (limited to 'archival')
-rw-r--r--archival/dpkg.c6
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
442 field2 = strtok_r(line2, "|", &line_ptr2); 442 field2 = strtok_r(line2, "|", &line_ptr2);
443 if ((edge_type == EDGE_DEPENDS || edge_type == EDGE_PRE_DEPENDS) && 443 if ((edge_type == EDGE_DEPENDS || edge_type == EDGE_PRE_DEPENDS) &&
444 (strcmp(field, field2) != 0)) { 444 (strcmp(field, field2) != 0)) {
445 or_edge = (edge_t *)xmalloc(sizeof(edge_t)); 445 or_edge = xmalloc(sizeof(edge_t));
446 or_edge->type = edge_type + 1; 446 or_edge->type = edge_type + 1;
447 } else { 447 } else {
448 or_edge = NULL; 448 or_edge = NULL;
@@ -456,7 +456,7 @@ static void add_split_dependencies(common_node_t *parent_node, const char *whole
456 } 456 }
457 457
458 do { 458 do {
459 edge = (edge_t *) xmalloc(sizeof(edge_t)); 459 edge = xmalloc(sizeof(edge_t));
460 edge->type = edge_type; 460 edge->type = edge_type;
461 461
462 /* Skip any extra leading spaces */ 462 /* Skip any extra leading spaces */
@@ -1708,7 +1708,7 @@ int dpkg_main(int argc, char **argv)
1708 /* If no previous entry was found initialise a new entry */ 1708 /* If no previous entry was found initialise a new entry */
1709 if ((status_hashtable[status_num] == NULL) || 1709 if ((status_hashtable[status_num] == NULL) ||
1710 (status_hashtable[status_num]->status == 0)) { 1710 (status_hashtable[status_num]->status == 0)) {
1711 status_node = (status_node_t *) xmalloc(sizeof(status_node_t)); 1711 status_node = xmalloc(sizeof(status_node_t));
1712 status_node->package = deb_file[deb_count]->package; 1712 status_node->package = deb_file[deb_count]->package;
1713 /* reinstreq isnt changed to "ok" until the package control info 1713 /* reinstreq isnt changed to "ok" until the package control info
1714 * is written to the status file*/ 1714 * is written to the status file*/