summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Martín Nieto <carlosmn@github.com>2016-02-23 22:27:36 +0100
committerCarlos Martín Nieto <carlosmn@github.com>2016-02-23 22:27:36 +0100
commit43955927e4b4ad004443f07cb5611a1f0ce282a4 (patch)
tree5d601ca5e629b8f3e142ba81c8139b8f2434c792
parentfb96b28cd9f66998f38a56abb7398ea899c12512 (diff)
parentcd59e0c0c757a5bcc4ed2324b207846b411368cb (diff)
downloadlibgit2-43955927e4b4ad004443f07cb5611a1f0ce282a4.tar.gz
Merge pull request #3631 from ethomson/giterr_fixups
Minor `giterr` fixups
-rw-r--r--include/git2/errors.h5
-rw-r--r--src/unix/map.c2
2 files changed, 1 insertions, 6 deletions
diff --git a/include/git2/errors.h b/include/git2/errors.h
index 1b528cf25..3ecea34bf 100644
--- a/include/git2/errors.h
+++ b/include/git2/errors.h
@@ -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
diff --git a/src/unix/map.c b/src/unix/map.c
index 87ee6594b..72abb3418 100644
--- a/src/unix/map.c
+++ b/src/unix/map.c
@@ -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, "Can't determine system page size");
+ giterr_set(GITERR_OS, "can't determine system page size");
return -1;
}
*page_size = (size_t) sc_page_size;