summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2014-12-10 16:22:50 +0100
committerCarlos Martín Nieto <cmn@dwim.me>2014-12-10 16:22:50 +0100
commita2fd56ab18cfe1a16372193e8ddfbbe6cadb5a78 (patch)
tree094347f364ce07d5425e979eb6a352b694f5170b
parent49ae22baac96f14d63547c158a87b4de2d8373a8 (diff)
downloadlibgit2-a2fd56ab18cfe1a16372193e8ddfbbe6cadb5a78.tar.gz
Fix a couple of compiler warnings
-rw-r--r--src/stream.h2
-rw-r--r--src/transports/http.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/stream.h b/src/stream.h
index 5267d90ad..3a7ef9514 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 c433a5913..807e08044 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) &&