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
44d16d6f
Commit
44d16d6f
authored
May 19, 2011
by
Vicent Martí
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #198 from sschuberth/fix-typos
Fix a few minor typos in comments and error messages
parents
f4e2aca2
8133afef
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
src/config_file.c
+3
-3
src/msvc-compat.h
+1
-1
No files found.
src/config_file.c
View file @
44d16d6f
...
...
@@ -641,7 +641,7 @@ static int parse_section_header_ext(const char *line, const char *base_name, cha
ret
=
snprintf
(
*
section_name
,
total_len
,
"%s %s"
,
base_name
,
subsection
);
if
(
ret
>=
total_len
)
{
/* If this fails, we've checked the length wrong */
error
=
git__throw
(
GIT_ERROR
,
"Failed to parse ext header. Wrong total leng
ht
calculation"
);
error
=
git__throw
(
GIT_ERROR
,
"Failed to parse ext header. Wrong total leng
th
calculation"
);
goto
out
;
}
else
if
(
ret
<
0
)
{
error
=
git__throw
(
GIT_EOSERR
,
"Failed to parse ext header. OS error: %s"
,
strerror
(
errno
));
...
...
@@ -804,7 +804,7 @@ static int config_parse(file_backend *cfg_file)
char
*
var_value
;
cvar_t
*
var
;
/* Initiali
s
e the reading position */
/* Initiali
z
e the reading position */
cfg_file
->
reader
.
read_ptr
=
cfg_file
->
reader
.
buffer
.
data
;
cfg_file
->
reader
.
eof
=
0
;
...
...
@@ -1001,7 +1001,7 @@ static int parse_variable(file_backend *cfg, char **var_name, char **var_value)
*
var_value
=
tmp
;
}
else
{
/* If thre is no value, boolean true is assumed */
/* If th
e
re is no value, boolean true is assumed */
*
var_value
=
NULL
;
}
...
...
src/msvc-compat.h
View file @
44d16d6f
...
...
@@ -17,7 +17,7 @@
# define S_ISREG(m) (((m) & _S_IFMT) == _S_IFREG)
# define S_ISFIFO(m) (((m) & _S_IFMT) == _S_IFIFO)
/* case-insensitive string comparis
i
on */
/* case-insensitive string comparison */
# define strcasecmp _stricmp
# define strncasecmp _strnicmp
...
...
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