Commit 04c3b35f by Edward Thomson

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.
parent fb96b28c
...@@ -17,7 +17,7 @@ int git__page_size(size_t *page_size) ...@@ -17,7 +17,7 @@ int git__page_size(size_t *page_size)
{ {
long sc_page_size = sysconf(_SC_PAGE_SIZE); long sc_page_size = sysconf(_SC_PAGE_SIZE);
if (sc_page_size < 0) { 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; return -1;
} }
*page_size = (size_t) sc_page_size; *page_size = (size_t) sc_page_size;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment