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
43955927
Commit
43955927
authored
Feb 23, 2016
by
Carlos Martín Nieto
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3631 from ethomson/giterr_fixups
Minor `giterr` fixups
parents
fb96b28c
cd59e0c0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
6 deletions
+1
-6
include/git2/errors.h
+0
-5
src/unix/map.c
+1
-1
No files found.
include/git2/errors.h
View file @
43955927
...
...
@@ -126,11 +126,6 @@ GIT_EXTERN(void) giterr_clear(void);
* This error message is stored in thread-local storage and only applies
* to the particular thread that this libgit2 call is made from.
*
* NOTE: Passing the `error_class` as GITERR_OS has a special behavior: we
* attempt to append the system default error message for the last OS error
* that occurred and then clear the last error. The specific implementation
* of looking up and clearing this last OS error will vary by platform.
*
* @param error_class One of the `git_error_t` enum above describing the
* general subsystem that is responsible for the error.
* @param string The formatted error message to keep
...
...
src/unix/map.c
View file @
43955927
...
...
@@ -17,7 +17,7 @@ int git__page_size(size_t *page_size)
{
long
sc_page_size
=
sysconf
(
_SC_PAGE_SIZE
);
if
(
sc_page_size
<
0
)
{
giterr_set
_str
(
GITERR_OS
,
"C
an't determine system page size"
);
giterr_set
(
GITERR_OS
,
"c
an't determine system page size"
);
return
-
1
;
}
*
page_size
=
(
size_t
)
sc_page_size
;
...
...
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