summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2010-05-31 16:58:24 +0200
committerYang Tse <yangsita@gmail.com>2010-05-31 16:58:24 +0200
commit12043e3c9c39335982764557cba4684bb5ffa5d3 (patch)
tree664b9cfd9788b5e5b2b28a9b0309c32f906323c7 /tests
parenta324fa7b97657bbd52d7358dd800472f3beb10e1 (diff)
downloadcurl-12043e3c9c39335982764557cba4684bb5ffa5d3.tar.gz
fix compiler warning: external declaration in primary source file
Diffstat (limited to 'tests')
-rw-r--r--tests/libtest/lib576.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/libtest/lib576.c b/tests/libtest/lib576.c
index 10857f6b7..821eb61ac 100644
--- a/tests/libtest/lib576.c
+++ b/tests/libtest/lib576.c
@@ -16,9 +16,12 @@ typedef struct {
int print_content;
} chunk_data_t;
+static
long chunk_bgn(const struct curl_fileinfo *finfo, void *ptr, int remains);
+static
long chunk_end(void *ptr);
+static
long chunk_bgn(const struct curl_fileinfo *finfo, void *ptr, int remains)
{
chunk_data_t *ch_d = ptr;
@@ -67,6 +70,7 @@ long chunk_bgn(const struct curl_fileinfo *finfo, void *ptr, int remains)
return CURL_CHUNK_BGN_FUNC_OK;
}
+static
long chunk_end(void *ptr)
{
chunk_data_t *ch_d = ptr;
@@ -82,7 +86,7 @@ long chunk_end(void *ptr)
int test(char *URL)
{
CURL *handle = NULL;
- CURLcode res = 0;
+ CURLcode res = CURLE_OK;
chunk_data_t chunk_data = {0,0};
curl_global_init(CURL_GLOBAL_ALL);
handle = curl_easy_init();