summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-03-04 13:06:32 -0500
committermidipix <writeonce@midipix.org>2016-03-04 13:06:32 -0500
commit7ac2f6e9637a96fb408befb695a1809e7dbe4f96 (patch)
tree263355bb2df663a3a1ab4d4e290e3892949a138a /src
parentacdc253dba74e309a22487bd6981a0e151de3c9a (diff)
downloadapimagic-7ac2f6e9637a96fb408befb695a1809e7dbe4f96.tar.bz2
apimagic-7ac2f6e9637a96fb408befb695a1809e7dbe4f96.tar.xz
amgc_map_input(): rename a shadowing automatic variable.
Diffstat (limited to 'src')
-rw-r--r--src/logic/amgc_map_input.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/logic/amgc_map_input.c b/src/logic/amgc_map_input.c
index 0499c35..5d2f08d 100644
--- a/src/logic/amgc_map_input.c
+++ b/src/logic/amgc_map_input.c
@@ -20,7 +20,7 @@ int amgc_map_input(
int prot,
struct amgc_input * map)
{
- struct stat stat;
+ struct stat st;
bool fnew;
int ret;
@@ -30,13 +30,13 @@ int amgc_map_input(
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)