diff options
author | Edward Thomson <ethomson@github.com> | 2016-02-23 13:02:07 -0500 |
---|---|---|
committer | Edward Thomson <ethomson@github.com> | 2016-02-23 13:08:50 -0500 |
commit | 04c3b35f9c90fb93390c0198bc1a8123ca13e081 (patch) | |
tree | c30718340cc2877dac3f3586538df72f370dcccb | |
parent | fb96b28cd9f66998f38a56abb7398ea899c12512 (diff) | |
download | libgit2-04c3b35f9c90fb93390c0198bc1a8123ca13e081.tar.gz |
map: use `giterr_set` internally
Use the `giterr_set` function, which actually supports `GITERR_OS`.
The `giterr_set_str` function is exposed for external users and will
not append the operating system's error message.
-rw-r--r-- | src/unix/map.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |