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
4191d529
Commit
4191d529
authored
May 24, 2011
by
Vicent Martí
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #204 from nulltoken/fix/build-msvc
Fix compilation warnings in MSVC
parents
8146fe7c
3a1c4310
Hide 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 @
4191d529
...
...
@@ -638,7 +638,7 @@ static int parse_section_header_ext(const char *line, const char *base_name, cha
break
;
}
subsection
[
pos
++
]
=
c
;
subsection
[
pos
++
]
=
(
char
)
c
;
}
while
((
c
=
line
[
rpos
++
])
!=
']'
);
subsection
[
pos
]
=
'\0'
;
...
...
@@ -719,7 +719,7 @@ static int parse_section_header(diskfile_backend *cfg, char **section_out)
goto
error
;
}
name
[
name_length
++
]
=
tolower
(
c
);
name
[
name_length
++
]
=
(
char
)
tolower
(
c
);
}
while
((
c
=
line
[
pos
++
])
!=
']'
);
...
...
src/util.c
View file @
4191d529
...
...
@@ -109,7 +109,7 @@ void git__strntolower(char *str, int len)
int
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