Uhh, lint
This commit is contained in:
@@ -29,19 +29,19 @@
|
||||
|
||||
namespace xe {
|
||||
namespace kernel {
|
||||
uint8_t* xex2_get_opt_header(const xex2_header* header, uint32_t key) {
|
||||
uint8_t *xex2_get_opt_header(const xex2_header *header, uint32_t key) {
|
||||
for (uint32_t i = 0; i < header->header_count; i++) {
|
||||
const xex2_opt_header& opt_header = header->headers[i];
|
||||
const xex2_opt_header &opt_header = header->headers[i];
|
||||
if (opt_header.key != key) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if ((opt_header.key & 0xFF) == 0x01) {
|
||||
// Data is stored in the opt header
|
||||
return (uint8_t*)&opt_header.value;
|
||||
return (uint8_t *)&opt_header.value;
|
||||
} else {
|
||||
// Data stored at offset.
|
||||
return ((uint8_t*)&header->headers[0] + opt_header.offset);
|
||||
return ((uint8_t *)&header->headers[0] + opt_header.offset);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user