Make function to refill http queue a callback
[gitweb.git] / http-fetch.c
index e9b9f307f8f0a38326df56e9a827b261990734fe..7786110ffc1fa283dc1e67f874ea5a61d532a9a5 100644 (file)
@@ -317,7 +317,7 @@ static void release_object_request(struct object_request *obj_req)
 }
 
 #ifdef USE_CURL_MULTI
-int fill_active_slot(void)
+static int fill_active_slot(void *unused)
 {
        struct object_request *obj_req;
 
@@ -1035,6 +1035,10 @@ int main(int argc, const char **argv)
        alt->packs = NULL;
        alt->next = NULL;
 
+#ifdef USE_CURL_MULTI
+       add_fill_function(NULL, fill_active_slot);
+#endif
+
        if (pull(commits, commit_id, write_ref, url))
                rc = 1;