diff options
author | Edward Thomson <ethomson@github.com> | 2016-08-08 08:42:32 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-08 08:42:32 -0400 |
commit | b47e79e2cd68a507311ee0276a3503f7e00591d0 (patch) | |
tree | f1ef9744039bee3f8bd2bc5e3eabff5b875e30ef | |
parent | 0fd5a44dde785523390865d5c058bbf36a27339c (diff) | |
parent | 067bf5dcc5144656b10176cb6e8745db347b41f9 (diff) | |
download | libgit2-b47e79e2cd68a507311ee0276a3503f7e00591d0.tar.gz |
Merge pull request #3890 from pks-t/pks/stransport-static-linkage
stransport: make internal functions static
-rw-r--r-- | src/stransport_stream.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/stransport_stream.c b/src/stransport_stream.c index 008bdfb3c..e568620e9 100644 --- a/src/stransport_stream.c +++ b/src/stransport_stream.c @@ -16,7 +16,7 @@ #include "socket_stream.h" #include "curl_stream.h" -int stransport_error(OSStatus ret) +static int stransport_error(OSStatus ret) { CFStringRef message; @@ -47,7 +47,7 @@ typedef struct { git_cert_x509 cert_info; } stransport_stream; -int stransport_connect(git_stream *stream) +static int stransport_connect(git_stream *stream) { stransport_stream *st = (stransport_stream *) stream; int error; @@ -93,7 +93,7 @@ on_error: return stransport_error(ret); } -int stransport_certificate(git_cert **out, git_stream *stream) +static int stransport_certificate(git_cert **out, git_stream *stream) { stransport_stream *st = (stransport_stream *) stream; SecTrustRef trust = NULL; @@ -120,7 +120,7 @@ int stransport_certificate(git_cert **out, git_stream *stream) return 0; } -int stransport_set_proxy( +static int stransport_set_proxy( git_stream *stream, const git_proxy_options *proxy_opts) { @@ -152,7 +152,7 @@ static OSStatus write_cb(SSLConnectionRef conn, const void *data, size_t *len) return noErr; } -ssize_t stransport_write(git_stream *stream, const char *data, size_t len, int flags) +static ssize_t stransport_write(git_stream *stream, const char *data, size_t len, int flags) { stransport_stream *st = (stransport_stream *) stream; size_t data_len, processed; @@ -201,7 +201,7 @@ static OSStatus read_cb(SSLConnectionRef conn, void *data, size_t *len) return error; } -ssize_t stransport_read(git_stream *stream, void *data, size_t len) +static ssize_t stransport_read(git_stream *stream, void *data, size_t len) { stransport_stream *st = (stransport_stream *) stream; size_t processed; @@ -213,7 +213,7 @@ ssize_t stransport_read(git_stream *stream, void *data, size_t len) return processed; } -int stransport_close(git_stream *stream) +static int stransport_close(git_stream *stream) { stransport_stream *st = (stransport_stream *) stream; OSStatus ret; @@ -225,7 +225,7 @@ int stransport_close(git_stream *stream) return git_stream_close(st->io); } -void stransport_free(git_stream *stream) +static void stransport_free(git_stream *stream) { stransport_stream *st = (stransport_stream *) stream; |