X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=http-push.c;h=e6bd01a516082985637eba3eaaab629e5ab5fef8;hb=78360b576acb0ee47c90552cb3f976a3c6ba4d6a;hp=392533a017e560a7b6ac7c1b484ee2f608982a27;hpb=5ad6b0252b4fff02ac8516b2ea5e3e7330dcc76f;p=git.git diff --git a/http-push.c b/http-push.c index 392533a01..e6bd01a51 100644 --- a/http-push.c +++ b/http-push.c @@ -759,7 +759,7 @@ static void finish_request(struct transfer_request *request) } } else { if (request->http_code == 416) - fprintf(stderr, "Warning: requested range invalid; we may already have all the data.\n"); + warning("requested range invalid; we may already have all the data."); git_inflate_end(&request->stream); git_SHA1_Final(request->real_sha1, &request->c); @@ -816,7 +816,7 @@ static void finish_request(struct transfer_request *request) #ifdef USE_CURL_MULTI static int fill_active_slot(void *unused) { - struct transfer_request *request = request_queue_head; + struct transfer_request *request; if (aborted) return 0; @@ -1616,7 +1616,7 @@ static int locking_available(void) } XML_ParserFree(parser); if (!lock_flags) - error("Error: no DAV locking support on %s", + error("no DAV locking support on %s", remote->url); } else { @@ -2225,7 +2225,7 @@ int main(int argc, char **argv) if (info_ref_lock) remote->can_update_info_refs = 1; else { - fprintf(stderr, "Error: cannot lock existing info/refs\n"); + error("cannot lock existing info/refs"); rc = 1; goto cleanup; }