summaryrefslogtreecommitdiff
path: root/src/transports/http.c
diff options
context:
space:
mode:
authorPhilip Kelley <phkelley@hotmail.com>2012-11-29 08:29:26 -0500
committerPhilip Kelley <phkelley@hotmail.com>2012-11-29 08:29:26 -0500
commit6762fe087bd75e60b3e551f94c8ecda89d374c83 (patch)
tree32e63aa5c1f225e6ad754bed58184b2a142ee8ec /src/transports/http.c
parentac22d08f2fbe53c28a0f7dffcfa44c5408dcf78f (diff)
downloadlibgit2-6762fe087bd75e60b3e551f94c8ecda89d374c83.tar.gz
Remove casts of return values of type void *
Diffstat (limited to 'src/transports/http.c')
-rw-r--r--src/transports/http.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/transports/http.c b/src/transports/http.c
index b8fc4fe79..4ef99e3f5 100644
--- a/src/transports/http.c
+++ b/src/transports/http.c
@@ -545,7 +545,7 @@ static int http_stream_write_chunked(
int count = MIN(CHUNK_SIZE - s->chunk_buffer_len, len);
if (!s->chunk_buffer)
- s->chunk_buffer = (char *)git__malloc(CHUNK_SIZE);
+ s->chunk_buffer = git__malloc(CHUNK_SIZE);
memcpy(s->chunk_buffer + s->chunk_buffer_len, buffer, count);
s->chunk_buffer_len += count;
@@ -626,7 +626,7 @@ static int http_stream_alloc(http_subtransport *t,
if (!stream)
return -1;
- s = (http_stream *)git__calloc(sizeof(http_stream), 1);
+ s = git__calloc(sizeof(http_stream), 1);
GITERR_CHECK_ALLOC(s);
s->parent.subtransport = &t->parent;
@@ -838,7 +838,7 @@ int git_smart_subtransport_http(git_smart_subtransport **out, git_transport *own
if (!out)
return -1;
- t = (http_subtransport *)git__calloc(sizeof(http_subtransport), 1);
+ t = git__calloc(sizeof(http_subtransport), 1);
GITERR_CHECK_ALLOC(t);
t->owner = (transport_smart *)owner;