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
3a1c4310
Commit
3a1c4310
authored
May 24, 2011
by
nulltoken
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix compilation warnings in MSVC
This allows to successfully build libgit2 with waf on Windows.
parent
8146fe7c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
src/config_file.c
+2
-2
src/util.c
+1
-1
No files found.
src/config_file.c
View file @
3a1c4310
...
@@ -638,7 +638,7 @@ static int parse_section_header_ext(const char *line, const char *base_name, cha
...
@@ -638,7 +638,7 @@ static int parse_section_header_ext(const char *line, const char *base_name, cha
break
;
break
;
}
}
subsection
[
pos
++
]
=
c
;
subsection
[
pos
++
]
=
(
char
)
c
;
}
while
((
c
=
line
[
rpos
++
])
!=
']'
);
}
while
((
c
=
line
[
rpos
++
])
!=
']'
);
subsection
[
pos
]
=
'\0'
;
subsection
[
pos
]
=
'\0'
;
...
@@ -719,7 +719,7 @@ static int parse_section_header(diskfile_backend *cfg, char **section_out)
...
@@ -719,7 +719,7 @@ static int parse_section_header(diskfile_backend *cfg, char **section_out)
goto
error
;
goto
error
;
}
}
name
[
name_length
++
]
=
tolower
(
c
);
name
[
name_length
++
]
=
(
char
)
tolower
(
c
);
}
while
((
c
=
line
[
pos
++
])
!=
']'
);
}
while
((
c
=
line
[
pos
++
])
!=
']'
);
...
...
src/util.c
View file @
3a1c4310
...
@@ -109,7 +109,7 @@ void git__strntolower(char *str, int len)
...
@@ -109,7 +109,7 @@ void git__strntolower(char *str, int len)
int
i
;
int
i
;
for
(
i
=
0
;
i
<
len
;
++
i
)
{
for
(
i
=
0
;
i
<
len
;
++
i
)
{
str
[
i
]
=
tolower
(
str
[
i
]);
str
[
i
]
=
(
char
)
tolower
(
str
[
i
]);
}
}
}
}
...
...
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