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
03eebab8
Commit
03eebab8
authored
May 12, 2023
by
Edward Thomson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
win32: getsockopt takes a `char *` instead of a `void *`
Monsters.
parent
02ab53ce
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
src/libgit2/streams/socket.c
+2
-1
No files found.
src/libgit2/streams/socket.c
View file @
03eebab8
...
@@ -103,7 +103,8 @@ static int handle_sockerr(GIT_SOCKET socket)
...
@@ -103,7 +103,8 @@ static int handle_sockerr(GIT_SOCKET socket)
int
sockerr
;
int
sockerr
;
socklen_t
errlen
=
sizeof
(
sockerr
);
socklen_t
errlen
=
sizeof
(
sockerr
);
if
(
getsockopt
(
socket
,
SOL_SOCKET
,
SO_ERROR
,
&
sockerr
,
&
errlen
)
<
0
)
if
(
getsockopt
(
socket
,
SOL_SOCKET
,
SO_ERROR
,
(
void
*
)
&
sockerr
,
&
errlen
)
<
0
)
return
-
1
;
return
-
1
;
if
(
sockerr
==
ETIMEDOUT
)
if
(
sockerr
==
ETIMEDOUT
)
...
...
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