Commit cfce0bee authored by Daniel Kutik's avatar Daniel Kutik Committed by Bjorn Andersson
Browse files

program: dropped unused attributes

The attributes size_in_KB, sparse and start_byte_hex
are not used and seem to be optional. Some program
xml files do not always contain them which then causes
qdl to crash. Simply removing the unused attributes
fixes this problem.
Signed-off-by: default avatarBjorn Andersson <>
parent a50ec804
......@@ -110,9 +110,6 @@ int program_load(const char *program_file)
program->label = attr_as_string(node, "label", &errors);
program->num_sectors = attr_as_unsigned(node, "num_partition_sectors", &errors);
program->partition = attr_as_unsigned(node, "physical_partition_number", &errors);
program->size = attr_as_unsigned(node, "size_in_KB", &errors);
program->sparse = attr_as_bool(node, "sparse", &errors);
program->start_bytes = attr_as_string(node, "start_byte_hex", &errors);
program->start_sector = attr_as_string(node, "start_sector", &errors);
if (errors) {
......@@ -10,9 +10,6 @@ struct program {
const char *label;
unsigned num_sectors;
unsigned partition;
unsigned size;
bool sparse;
const char *start_bytes;
const char *start_sector;
struct program *next;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment