summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-03-04 12:37:25 -0500
committermidipix <writeonce@midipix.org>2016-11-10 23:35:39 -0500
commitce59ae11a543b328e86ad59fd869a719b15a7085 (patch)
tree7aa435fca91a5fe82f387d609d188c0a54b68a56
parent3aa9875e7bd0885239277699750a2a6b0ae0f4e6 (diff)
downloadperk-ce59ae11a543b328e86ad59fd869a719b15a7085.tar.bz2
perk-ce59ae11a543b328e86ad59fd869a719b15a7085.tar.xz
pe_map_raw_image(): rename a shadowing automatic variable.
-rw-r--r--src/logic/pe_map_raw_image.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/logic/pe_map_raw_image.c b/src/logic/pe_map_raw_image.c
index d28ecb6..0598d85 100644
--- a/src/logic/pe_map_raw_image.c
+++ b/src/logic/pe_map_raw_image.c
@@ -20,7 +20,7 @@ int pe_map_raw_image(
int prot,
struct pe_raw_image * map)
{
- struct stat stat;
+ struct stat st;
bool fnew;
int ret;
@@ -30,13 +30,13 @@ int pe_map_raw_image(
if (fd < 0)
return -1;
- if ((ret = fstat(fd,&stat) < 0) && fnew)
+ if ((ret = fstat(fd,&st) < 0) && fnew)
close(fd);
if (ret < 0)
return -1;
- map->size = stat.st_size;
+ map->size = st.st_size;
map->addr = mmap(0,map->size,prot,MAP_PRIVATE,fd,0);
if (fnew)