mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-03 04:34:15 +00:00
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.
This commit is contained in:
parent
fb96b28cd9
commit
04c3b35f9c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user