Fix a couple of compiler warnings
diff --git a/src/stream.h b/src/stream.h
index 5267d90..3a7ef95 100644
--- a/src/stream.h
+++ b/src/stream.h
@@ -42,7 +42,7 @@ GIT_INLINE(int) git_stream_close(git_stream *st)
GIT_INLINE(void) git_stream_free(git_stream *st)
{
- return st->free(st);
+ st->free(st);
}
#endif
diff --git a/src/transports/http.c b/src/transports/http.c
index c433a59..807e080 100644
--- a/src/transports/http.c
+++ b/src/transports/http.c
@@ -526,7 +526,7 @@ static int write_chunk(git_stream *io, const char *buffer, size_t len)
static int http_connect(http_subtransport *t)
{
- int flags = 0, error;
+ int error;
if (t->connected &&
http_should_keep_alive(&t->parser) &&