diff options
author | Yang Tse <yangsita@gmail.com> | 2007-10-02 16:05:28 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2007-10-02 16:05:28 +0000 |
commit | 059707be320e993e7ee047e1e728ce9d6e67e4f7 (patch) | |
tree | 0882a7d75203a65e0d7df64d568a2b99c153f21f /tests/libtest/lib525.c | |
parent | 048bfeaaefe04001b6610b45a6ab6cfa02bcffd3 (diff) |
Renamed a couple of global variables to avoid shadowing warnings
Diffstat (limited to 'tests/libtest/lib525.c')
-rw-r--r-- | tests/libtest/lib525.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/libtest/lib525.c b/tests/libtest/lib525.c index b60328ba1..222f8c278 100644 --- a/tests/libtest/lib525.c +++ b/tests/libtest/lib525.c @@ -35,25 +35,25 @@ int test(char *URL) char ml_timedout = FALSE; char mp_timedout = FALSE; - if (!arg2) { + if (!libtest_arg2) { fprintf(stderr, "Usage: lib525 [url] [uploadfile]\n"); return -1; } /* get the file size of the local file */ - hd = open(arg2, O_RDONLY) ; + hd = open(libtest_arg2, O_RDONLY) ; fstat(hd, &file_info); close(hd) ; /* get a FILE * of the same file, could also be made with fdopen() from the previous descriptor, but hey this is just an example! */ - hd_src = fopen(arg2, "rb"); + hd_src = fopen(libtest_arg2, "rb"); if(NULL == hd_src) { error = ERRNO; fprintf(stderr, "fopen() failed with error: %d %s\n", error, strerror(error)); - fprintf(stderr, "Error opening file: %s\n", arg2); + fprintf(stderr, "Error opening file: %s\n", libtest_arg2); return TEST_ERR_MAJOR_BAD; } |