Apply linter to dotnet.c
@@ -318,9 +318,8 @@ STREAMS dotnet_parse_stream_headers(
headers.us = stream_header;
// Stream name is padded to a multiple of 4.
- stream_header = (PSTREAM_HEADER)(
- (uint8_t*) stream_header + sizeof(STREAM_HEADER) + strlen(stream_name) +
- 4 - (strlen(stream_name) % 4));
+ stream_header =
+ (PSTREAM_HEADER) ((uint8_t*) stream_header + sizeof(STREAM_HEADER) + strlen(stream_name) + 4 - (strlen(stream_name) % 4));
}
set_integer(i, pe->object, "number_of_streams");
@@ -723,8 +722,8 @@ void dotnet_parse_tilde_2(
}
// Check the Type field.
- customattribute_table = (PCUSTOMATTRIBUTE_TABLE)(
- row_ptr + index_size);
+ customattribute_table =
+ (PCUSTOMATTRIBUTE_TABLE) (row_ptr + index_size);
if (index_size2 == 4)
{
@@ -832,8 +831,8 @@ void dotnet_parse_tilde_2(
}
// Get the Value field.
- customattribute_table = (PCUSTOMATTRIBUTE_TABLE)(
- row_ptr + index_size + index_size2);
+ customattribute_table =
+ (PCUSTOMATTRIBUTE_TABLE) (row_ptr + index_size + index_size2);
if (index_sizes.blob == 4)
blob_index = *(DWORD*) customattribute_table;
@@ -1481,8 +1480,8 @@ void dotnet_parse_tilde(
// Default index sizes are 2. Will be bumped to 4 if necessary.
memset(&index_sizes, 2, sizeof(index_sizes));
- tilde_header = (PTILDE_HEADER)(
- pe->data + metadata_root + yr_le32toh(streams->tilde->Offset));
+ tilde_header =
+ (PTILDE_HEADER) (pe->data + metadata_root + yr_le32toh(streams->tilde->Offset));
if (!struct_fits_in_pe(pe, tilde_header, TILDE_HEADER))
return;
