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
9aee7bc2
Commit
9aee7bc2
authored
Aug 08, 2016
by
Patrick Steinhardt
Committed by
Carlos Martín Nieto
Oct 01, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stransport: make internal functions static
parent
b64722fd
Hide 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 @
9aee7bc2
...
...
@@ -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
(
git_stream
*
stream
,
const
char
*
proxy
)
static
int
stransport_set_proxy
(
git_stream
*
stream
,
const
char
*
proxy
)
{
stransport_stream
*
st
=
(
stransport_stream
*
)
stream
;
...
...
@@ -150,7 +150,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
;
...
...
@@ -199,7 +199,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
;
...
...
@@ -211,7 +211,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
;
...
...
@@ -223,7 +223,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