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/main | |
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/main')
-rw-r--r-- | src/main/pe_map_raw_image.c | 2 | ||||
-rw-r--r-- | src/main/perk.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/main/pe_map_raw_image.c b/src/main/pe_map_raw_image.c index 8ae95d9..dc37e35 100644 --- a/src/main/pe_map_raw_image.c +++ b/src/main/pe_map_raw_image.c @@ -37,4 +37,4 @@ int pe_map_raw_image (int fd, const char * fname, struct pe_raw_image * map) int pe_unmap_raw_image (struct pe_raw_image * map) { return munmap(map->addr, map->size); -}; +} diff --git a/src/main/perk.c b/src/main/perk.c index 5fe8f17..d66b9ae 100644 --- a/src/main/perk.c +++ b/src/main/perk.c @@ -112,5 +112,5 @@ static int perk_main(int argc, char * argv[], char * envp[]) } #ifdef PERK_APP -extern __typeof(perk_main) main __attribute__((alias("perk_main"))); +__typeof(perk_main) main __attribute__((alias("perk_main"))); #endif |