diff options
author | midipix <writeonce@midipix.org> | 2016-03-04 12:58:13 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-11-11 00:22:36 -0500 |
commit | f2df67b86ef8008ca5e0354f759c3e3460e5deba (patch) | |
tree | 0528c3fe5cc96ead82897b0e50b0daf5da561e71 /src/logic | |
parent | 684d6e07c1b5a6706ba89241aa339995978720be (diff) | |
download | mdso-f2df67b86ef8008ca5e0354f759c3e3460e5deba.tar.bz2 mdso-f2df67b86ef8008ca5e0354f759c3e3460e5deba.tar.xz |
mdso_map_input(): rename a shadowing automatic variable.
Diffstat (limited to 'src/logic')
-rw-r--r-- | src/logic/mdso_map_input.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/logic/mdso_map_input.c b/src/logic/mdso_map_input.c index 93f8b2d..e29b8e7 100644 --- a/src/logic/mdso_map_input.c +++ b/src/logic/mdso_map_input.c @@ -20,7 +20,7 @@ int mdso_map_input( int prot, struct mdso_input * map) { - struct stat stat; + struct stat st; bool fnew; int ret; @@ -30,13 +30,13 @@ int mdso_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) |