Formatting fixes.
Change-Id: I8947f98088bc7996f33235ab2267e243e45bd8dd
diff --git a/cper-parse.c b/cper-parse.c
index 5e71ba2..346d6ea 100644
--- a/cper-parse.c
+++ b/cper-parse.c
@@ -252,10 +252,11 @@
//Readable section type, if possible.
const char *section_type_readable = "Unknown";
- for (int i=0; i<section_definitions_len; i++)
- {
- if (guid_equal(section_definitions[i].Guid, §ion_descriptor->SectionType)) {
- section_type_readable = section_definitions[i].ReadableName;
+ for (int i = 0; i < section_definitions_len; i++) {
+ if (guid_equal(section_definitions[i].Guid,
+ §ion_descriptor->SectionType)) {
+ section_type_readable =
+ section_definitions[i].ReadableName;
break;
}
}
@@ -316,10 +317,12 @@
//Parse section to IR based on GUID.
json_object *result = NULL;
int section_converted = 0;
- for (int i=0; i<section_definitions_len; i++)
- {
- if (guid_equal(section_definitions[i].Guid, &descriptor->SectionType) && section_definitions[i].ToIR != NULL) {
- result = section_definitions[i].ToIR(section, descriptor);
+ for (int i = 0; i < section_definitions_len; i++) {
+ if (guid_equal(section_definitions[i].Guid,
+ &descriptor->SectionType) &&
+ section_definitions[i].ToIR != NULL) {
+ result = section_definitions[i].ToIR(section,
+ descriptor);
section_converted = 1;
break;
}
diff --git a/ir-parse.c b/ir-parse.c
index 5d9e6f2..35c35c8 100644
--- a/ir-parse.c
+++ b/ir-parse.c
@@ -152,9 +152,10 @@
{
//Find the correct section type, and parse.
int section_converted = 0;
- for (int i=0; i<section_definitions_len; i++)
- {
- if (guid_equal(section_definitions[i].Guid, &descriptor->SectionType) && section_definitions[i].ToCPER != NULL) {
+ for (int i = 0; i < section_definitions_len; i++) {
+ if (guid_equal(section_definitions[i].Guid,
+ &descriptor->SectionType) &&
+ section_definitions[i].ToCPER != NULL) {
section_definitions[i].ToCPER(section, out);
section_converted = 1;
break;