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
bff7aed2
Commit
bff7aed2
authored
Jan 24, 2019
by
Sven Strickroth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't use deprecated constants
Follow up for PR #4917. Signed-off-by: Sven Strickroth <email@cs-ware.de>
parent
80be19b9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
src/streams/socket.c
+1
-1
src/transports/winhttp.c
+2
-2
No files found.
src/streams/socket.c
View file @
bff7aed2
...
...
@@ -38,7 +38,7 @@ static void net_set_error(const char *str)
git_error_set
(
GIT_ERROR_NET
,
"%s: %s"
,
str
,
win32_error
);
git__free
(
win32_error
);
}
else
{
git_error_set
(
GIT
ER
R_NET
,
"%s"
,
str
);
git_error_set
(
GIT
_ERRO
R_NET
,
"%s"
,
str
);
}
}
#else
...
...
src/transports/winhttp.c
View file @
bff7aed2
...
...
@@ -719,7 +719,7 @@ static void CALLBACK winhttp_status(
else
if
((
status
&
WINHTTP_CALLBACK_STATUS_FLAG_SECURITY_CHANNEL_ERROR
))
git_error_set
(
GIT_ERROR_NET
,
"security libraries could not be loaded"
);
else
git_error_set
(
GIT
ER
R_NET
,
"unknown security error %lu"
,
status
);
git_error_set
(
GIT
_ERRO
R_NET
,
"unknown security error %lu"
,
status
);
}
static
int
winhttp_connect
(
...
...
@@ -1142,7 +1142,7 @@ replay:
}
if
(
HTTP_STATUS_OK
!=
status_code
)
{
git_error_set
(
GIT
ER
R_NET
,
"request failed with status code: %lu"
,
status_code
);
git_error_set
(
GIT
_ERRO
R_NET
,
"request failed with status code: %lu"
,
status_code
);
return
-
1
;
}
...
...
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