diff options
author | midipix <writeonce@midipix.org> | 2015-05-02 20:53:05 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-11-10 23:35:18 -0500 |
commit | b5f7f5d364d1546fc1c9eef76f17906aeafd0c13 (patch) | |
tree | 3214b7d6420cdf4dd7777250de1c20af19df4aa8 /src/reader/pe_read_import_header.c | |
parent | 057a3a1f027ae998ba200636b40ea98589ac2f86 (diff) | |
download | perk-b5f7f5d364d1546fc1c9eef76f17906aeafd0c13.tar.bz2 perk-b5f7f5d364d1546fc1c9eef76f17906aeafd0c13.tar.xz |
fix big-endian code path; make the code more -Wall-resistant.
Diffstat (limited to 'src/reader/pe_read_import_header.c')
-rw-r--r-- | src/reader/pe_read_import_header.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/reader/pe_read_import_header.c b/src/reader/pe_read_import_header.c index 7d71143..50434e4 100644 --- a/src/reader/pe_read_import_header.c +++ b/src/reader/pe_read_import_header.c @@ -14,9 +14,9 @@ int pe_read_import_header(const struct pe_import_hdr * p, struct pe_meta_import_ m->import_lookup_tbl_rva = pe_read_long(p->import_lookup_tbl_rva); m->time_date_stamp = pe_read_long(p->time_date_stamp); - m->forwarder_chain = pe_read_long(p>forwarder_chain); + m->forwarder_chain = pe_read_long(p->forwarder_chain); m->name_rva = pe_read_long(p->name_rva); - m->import_addr_tbl_rva = pe_read_long(p>import_addr_tbl_rva); + m->import_addr_tbl_rva = pe_read_long(p->import_addr_tbl_rva); #endif @@ -24,7 +24,7 @@ int pe_read_import_header(const struct pe_import_hdr * p, struct pe_meta_import_ m->aitems = 0; return 0; -}; +} int pe_read_import_lookup_item( const struct pe_import_lookup_item * p, @@ -43,4 +43,4 @@ int pe_read_import_lookup_item( default: return PERK_BAD_IMAGE_TYPE; } -}; +} |