Skip to content

Commit b47e79e

Browse files
author
Edward Thomson
authored
Merge pull request libgit2#3890 from pks-t/pks/stransport-static-linkage
stransport: make internal functions static
2 parents 0fd5a44 + 067bf5d commit b47e79e

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/stransport_stream.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#include "socket_stream.h"
1717
#include "curl_stream.h"
1818

19-
int stransport_error(OSStatus ret)
19+
static int stransport_error(OSStatus ret)
2020
{
2121
CFStringRef message;
2222

@@ -47,7 +47,7 @@ typedef struct {
4747
git_cert_x509 cert_info;
4848
} stransport_stream;
4949

50-
int stransport_connect(git_stream *stream)
50+
static int stransport_connect(git_stream *stream)
5151
{
5252
stransport_stream *st = (stransport_stream *) stream;
5353
int error;
@@ -93,7 +93,7 @@ int stransport_connect(git_stream *stream)
9393
return stransport_error(ret);
9494
}
9595

96-
int stransport_certificate(git_cert **out, git_stream *stream)
96+
static int stransport_certificate(git_cert **out, git_stream *stream)
9797
{
9898
stransport_stream *st = (stransport_stream *) stream;
9999
SecTrustRef trust = NULL;
@@ -120,7 +120,7 @@ int stransport_certificate(git_cert **out, git_stream *stream)
120120
return 0;
121121
}
122122

123-
int stransport_set_proxy(
123+
static int stransport_set_proxy(
124124
git_stream *stream,
125125
const git_proxy_options *proxy_opts)
126126
{
@@ -152,7 +152,7 @@ static OSStatus write_cb(SSLConnectionRef conn, const void *data, size_t *len)
152152
return noErr;
153153
}
154154

155-
ssize_t stransport_write(git_stream *stream, const char *data, size_t len, int flags)
155+
static ssize_t stransport_write(git_stream *stream, const char *data, size_t len, int flags)
156156
{
157157
stransport_stream *st = (stransport_stream *) stream;
158158
size_t data_len, processed;
@@ -201,7 +201,7 @@ static OSStatus read_cb(SSLConnectionRef conn, void *data, size_t *len)
201201
return error;
202202
}
203203

204-
ssize_t stransport_read(git_stream *stream, void *data, size_t len)
204+
static ssize_t stransport_read(git_stream *stream, void *data, size_t len)
205205
{
206206
stransport_stream *st = (stransport_stream *) stream;
207207
size_t processed;
@@ -213,7 +213,7 @@ ssize_t stransport_read(git_stream *stream, void *data, size_t len)
213213
return processed;
214214
}
215215

216-
int stransport_close(git_stream *stream)
216+
static int stransport_close(git_stream *stream)
217217
{
218218
stransport_stream *st = (stransport_stream *) stream;
219219
OSStatus ret;
@@ -225,7 +225,7 @@ int stransport_close(git_stream *stream)
225225
return git_stream_close(st->io);
226226
}
227227

228-
void stransport_free(git_stream *stream)
228+
static void stransport_free(git_stream *stream)
229229
{
230230
stransport_stream *st = (stransport_stream *) stream;
231231

0 commit comments

Comments
 (0)