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
45e93ef3
Commit
45e93ef3
authored
Sep 08, 2011
by
Sebastian Schuberth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix minor indentation issues (spaces to tabs)
parent
26e74c6a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
src/config_file.c
+2
-2
src/filebuf.c
+4
-4
No files found.
src/config_file.c
View file @
45e93ef3
...
...
@@ -539,9 +539,9 @@ static char *cfg_readline(diskfile_backend *cfg)
while
(
isspace
(
*
line_src
))
++
line_src
;
line_end
=
strchr
(
line_src
,
'\n'
);
line_end
=
strchr
(
line_src
,
'\n'
);
/* no newline at EOF */
/* no newline at EOF */
if
(
line_end
==
NULL
)
line_end
=
strchr
(
line_src
,
0
);
...
...
src/filebuf.c
View file @
45e93ef3
...
...
@@ -125,15 +125,15 @@ static int write_deflate(git_filebuf *file, void *source, size_t len)
zs
->
next_out
=
file
->
z_buf
;
zs
->
avail_out
=
file
->
buf_size
;
result
=
deflate
(
zs
,
file
->
flush_mode
);
assert
(
result
!=
Z_STREAM_ERROR
);
result
=
deflate
(
zs
,
file
->
flush_mode
);
assert
(
result
!=
Z_STREAM_ERROR
);
have
=
file
->
buf_size
-
zs
->
avail_out
;
have
=
file
->
buf_size
-
zs
->
avail_out
;
if
(
p_write
(
file
->
fd
,
file
->
z_buf
,
have
)
<
GIT_SUCCESS
)
return
git__throw
(
GIT_EOSERR
,
"Failed to write to file"
);
}
while
(
zs
->
avail_out
==
0
);
}
while
(
zs
->
avail_out
==
0
);
assert
(
zs
->
avail_in
==
0
);
...
...
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