Uhh, lint

This commit is contained in:
Dr. Chat
2015-06-28 12:26:51 -05:00
parent bb900ba9db
commit c47c0b3354
3 changed files with 8 additions and 6 deletions

View File

@@ -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);
}
}