diff options
author | Dan McGee <dan@archlinux.org> | 2011-06-27 10:10:08 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-06-27 10:10:08 -0500 |
commit | f01c6f814a278a3d024d34fed0c219c8cb1e1e33 (patch) | |
tree | 759833d3d7c46bca4f962c5fd442ab3f37d85b14 /lib/libalpm/dload.c | |
parent | 77a09c92c66bd06440be0ccb75daf07c620acbee (diff) | |
download | pacman-f01c6f814a278a3d024d34fed0c219c8cb1e1e33.tar.xz |
Fix several -Wshadow warnings
Only one of these looked like a real red flag, in find_requiredby(), but
it doesn't hurt to fix several of them up anyway.
Unfortunately, we can't turn this on universally due to things like the
sync(), remove(), etc. builtins which we often use as variable names.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/dload.c')
-rw-r--r-- | lib/libalpm/dload.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libalpm/dload.c b/lib/libalpm/dload.c index 33fb1cb8..c7903ff0 100644 --- a/lib/libalpm/dload.c +++ b/lib/libalpm/dload.c @@ -137,12 +137,12 @@ static int curl_gethost(const char *url, char *buffer) return 0; } -static int utimes_long(const char *path, long time) +static int utimes_long(const char *path, long seconds) { - if(time != -1) { + if(seconds != -1) { struct timeval tv[2]; memset(&tv, 0, sizeof(tv)); - tv[0].tv_sec = tv[1].tv_sec = time; + tv[0].tv_sec = tv[1].tv_sec = seconds; return utimes(path, tv); } return 0; |