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
cd19ca95
Commit
cd19ca95
authored
Oct 01, 2011
by
Carlos Martín Nieto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Squelch a couple of warnings
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
parent
9ac581bf
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/config_file.c
+1
-1
src/transport-http.c
+1
-1
No files found.
src/config_file.c
View file @
cd19ca95
...
...
@@ -134,7 +134,7 @@ static int cvar_match_section(const char *section, const char *query)
qsub
=
query
+
section_len
;
qdot
=
strchr
(
qsub
,
'.'
);
/* Make sure the subsections are the same length */
if
(
strlen
(
sdot
+
1
)
!=
qdot
-
qsub
)
if
(
strlen
(
sdot
+
1
)
!=
(
size_t
)
(
qdot
-
qsub
)
)
return
0
;
/* The subsection is case-sensitive */
...
...
src/transport-http.c
View file @
cd19ca95
...
...
@@ -397,7 +397,7 @@ int git_transport_http(git_transport **out)
/* on win32, the WSA context needs to be initialized
* before any socket calls can be performed */
if
(
WSAStartup
(
MAKEWORD
(
2
,
2
),
&
t
->
wsd
)
!=
0
)
{
http_free
(
t
);
http_free
(
(
git_transport
*
)
t
);
return
git__throw
(
GIT_EOSERR
,
"Winsock init failed"
);
}
#endif
...
...
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