summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-03-03 22:50:28 -0500
committermidipix <writeonce@midipix.org>2016-03-03 22:50:28 -0500
commit02966c1f50601e79736d4f41969b227fa675f8c5 (patch)
tree413536c2c3d8f817219ab4d411a95589bd082a4d /src
parent4f3978429459dcbbdf71f321302920893c302cb1 (diff)
downloadsofort-02966c1f50601e79736d4f41969b227fa675f8c5.tar.bz2
sofort-02966c1f50601e79736d4f41969b227fa675f8c5.tar.xz
sfrt_map_input(): rename a shadowing automatic variable.
Diffstat (limited to 'src')
-rw-r--r--src/logic/sfrt_map_input.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/logic/sfrt_map_input.c b/src/logic/sfrt_map_input.c
index 74fbdb5..abcedab 100644
--- a/src/logic/sfrt_map_input.c
+++ b/src/logic/sfrt_map_input.c
@@ -14,7 +14,7 @@ int sfrt_map_input(
int prot,
struct sfrt_input * map)
{
- struct stat stat;
+ struct stat st;
bool fnew;
int ret;
@@ -24,13 +24,13 @@ int sfrt_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)