summaryrefslogtreecommitdiff
path: root/http.c
diff options
context:
space:
mode:
authorThiago Farina <tfransosi@gmail.com>2010-01-03 11:20:30 -0500
committerJunio C Hamano <gitster@pobox.com>2010-01-03 16:17:03 -0800
commitbd757c18597789d4f01cbd2ffc7c1f55e90cfcd0 (patch)
tree45b5546f930e9f3836637f996bb3d4c39ca80e9f /http.c
parentb7fcb582e53cf2b3600263afa08cf4dce49a13f7 (diff)
downloadgit-bd757c18597789d4f01cbd2ffc7c1f55e90cfcd0.tar.gz
Use warning function instead of fprintf(stderr, "Warning: ...").
Signed-off-by: Thiago Farina <tfransosi@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'http.c')
-rw-r--r--http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/http.c b/http.c
index ed6414a2aa..455732fb24 100644
--- a/http.c
+++ b/http.c
@@ -1244,7 +1244,7 @@ int finish_http_object_request(struct http_object_request *freq)
process_http_object_request(freq);
if (freq->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.");
} else if (freq->curl_result != CURLE_OK) {
if (stat(freq->tmpfile, &st) == 0)
if (st.st_size == 0)