summaryrefslogtreecommitdiff
path: root/http.c
diff options
context:
space:
mode:
authorThiago Farina <tfransosi@gmail.com>2010-01-03 16:20:30 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-01-04 00:17:03 (GMT)
commitbd757c18597789d4f01cbd2ffc7c1f55e90cfcd0 (patch)
tree45b5546f930e9f3836637f996bb3d4c39ca80e9f /http.c
parentb7fcb582e53cf2b3600263afa08cf4dce49a13f7 (diff)
downloadgit-bd757c18597789d4f01cbd2ffc7c1f55e90cfcd0.zip
git-bd757c18597789d4f01cbd2ffc7c1f55e90cfcd0.tar.gz
git-bd757c18597789d4f01cbd2ffc7c1f55e90cfcd0.tar.bz2
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 ed6414a..455732f 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)