Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
b47e79e2
Commit
b47e79e2
authored
Aug 08, 2016
by
Edward Thomson
Committed by
GitHub
Aug 08, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3890 from pks-t/pks/stransport-static-linkage
stransport: make internal functions static
parents
0fd5a44d
067bf5dc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
src/stransport_stream.c
+8
-8
No files found.
src/stransport_stream.c
View file @
b47e79e2
...
...
@@ -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
)
s
tatic
s
size_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
)
s
tatic
s
size_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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment