aboutsummaryrefslogtreecommitdiffstats
path: root/t/test_curl.c
diff options
context:
space:
mode:
Diffstat (limited to 't/test_curl.c')
-rw-r--r--t/test_curl.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/t/test_curl.c b/t/test_curl.c
index 276ce48..a7f792e 100644
--- a/t/test_curl.c
+++ b/t/test_curl.c
@@ -1,24 +1,15 @@
#include "test_curl.h"
extern slapt_pkg_info_t pkg;
-
-static int _progress_cb(void *clientp, double dltotal, double dlnow,
- double ultotal, double ulnow)
-{
- (void) clientp;
- (void) dltotal;
- (void) dlnow;
- (void) ultotal;
- (void) ulnow;
- return 0;
-}
+extern int _progress_cb(void *clientp, double dltotal, double dlnow,
+ double ultotal, double ulnow);
START_TEST (test_slapt_get_mirror_data_from_source)
{
FILE *f = NULL;
const char *err = NULL;
slapt_rc_config *rc = slapt_read_rc_config("./data/rc1");
- const char *url = "http://software.jaos.org/slackpacks/10.0/";
+ const char *url = rc->sources->src[0]->url;
char *packages = "PACKAGES.TXT";
char *packages_gz = "PACKAGES.TXT.gz";
char *checksums = "CHECKSUMS.md5";