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/lib541.c | |
parent | 048bfeaaefe04001b6610b45a6ab6cfa02bcffd3 (diff) | |
download | curl-059707be320e993e7ee047e1e728ce9d6e67e4f7.tar.gz |
Renamed a couple of global variables to avoid shadowing warnings
Diffstat (limited to 'tests/libtest/lib541.c')
-rw-r--r-- | tests/libtest/lib541.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/libtest/lib541.c b/tests/libtest/lib541.c index 3ab1e2595..71d2e38ed 100644 --- a/tests/libtest/lib541.c +++ b/tests/libtest/lib541.c @@ -41,36 +41,36 @@ int test(char *URL) struct_stat file_info; int error; - if (!arg2) { + if (!libtest_arg2) { fprintf(stderr, "Usage: <url> <file-to-upload>\n"); return -1; } /* get the file size of the local file */ - hd = stat(arg2, &file_info); + hd = stat(libtest_arg2, &file_info); if(hd == -1) { /* can't open file, bail out */ error = ERRNO; fprintf(stderr, "stat() failed with error: %d %s\n", error, strerror(error)); - fprintf(stderr, "WARNING: cannot open file %s\n", arg2); + fprintf(stderr, "WARNING: cannot open file %s\n", libtest_arg2); return -1; } if(! file_info.st_size) { - fprintf(stderr, "WARNING: file %s has no size!\n", arg2); + fprintf(stderr, "WARNING: file %s has no size!\n", libtest_arg2); return -4; } /* 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 -2; /* if this happens things are major weird */ } |