Skip to content

Commit 067bf5d

Browse files
committed
stransport: make internal functions static
1 parent baa87df commit 067bf5d

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;
@@ -90,7 +90,7 @@ int stransport_connect(git_stream *stream)
9090
return stransport_error(ret);
9191
}
9292

93-
int stransport_certificate(git_cert **out, git_stream *stream)
93+
static int stransport_certificate(git_cert **out, git_stream *stream)
9494
{
9595
stransport_stream *st = (stransport_stream *) stream;
9696
SecTrustRef trust = NULL;
@@ -117,7 +117,7 @@ int stransport_certificate(git_cert **out, git_stream *stream)
117117
return 0;
118118
}
119119

120-
int stransport_set_proxy(
120+
static int stransport_set_proxy(
121121
git_stream *stream,
122122
const git_proxy_options *proxy_opts)
123123
{
@@ -149,7 +149,7 @@ static OSStatus write_cb(SSLConnectionRef conn, const void *data, size_t *len)
149149
return noErr;
150150
}
151151

152-
ssize_t stransport_write(git_stream *stream, const char *data, size_t len, int flags)
152+
static ssize_t stransport_write(git_stream *stream, const char *data, size_t len, int flags)
153153
{
154154
stransport_stream *st = (stransport_stream *) stream;
155155
size_t data_len, processed;
@@ -198,7 +198,7 @@ static OSStatus read_cb(SSLConnectionRef conn, void *data, size_t *len)
198198
return error;
199199
}
200200

201-
ssize_t stransport_read(git_stream *stream, void *data, size_t len)
201+
static ssize_t stransport_read(git_stream *stream, void *data, size_t len)
202202
{
203203
stransport_stream *st = (stransport_stream *) stream;
204204
size_t processed;
@@ -210,7 +210,7 @@ ssize_t stransport_read(git_stream *stream, void *data, size_t len)
210210
return processed;
211211
}
212212

213-
int stransport_close(git_stream *stream)
213+
static int stransport_close(git_stream *stream)
214214
{
215215
stransport_stream *st = (stransport_stream *) stream;
216216
OSStatus ret;
@@ -222,7 +222,7 @@ int stransport_close(git_stream *stream)
222222
return git_stream_close(st->io);
223223
}
224224

225-
void stransport_free(git_stream *stream)
225+
static void stransport_free(git_stream *stream)
226226
{
227227
stransport_stream *st = (stransport_stream *) stream;
228228

0 commit comments

Comments
 (0)