summaryrefslogtreecommitdiff
path: root/src/stdalloc.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2018-12-27 13:47:34 -0600
committerEdward Thomson <ethomson@edwardthomson.com>2019-01-22 22:30:35 +0000
commitf673e232afe22eb865cdc915e55a2df6493f0fbb (patch)
treee79e3e6fb1e1d78367679aea75e66c8141b4daa8 /src/stdalloc.c
parent647dfdb42d06514a85c1499f1be88a32b8a4c24b (diff)
downloadlibgit2-f673e232afe22eb865cdc915e55a2df6493f0fbb.tar.gz
git_error: use new names in internal APIs and usage
Move to the `git_error` name in the internal API for error-related functions.
Diffstat (limited to 'src/stdalloc.c')
-rw-r--r--src/stdalloc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/stdalloc.c b/src/stdalloc.c
index 171c9ed65..c6d4ec80c 100644
--- a/src/stdalloc.c
+++ b/src/stdalloc.c
@@ -14,7 +14,7 @@ static void *stdalloc__malloc(size_t len, const char *file, int line)
GIT_UNUSED(file);
GIT_UNUSED(line);
- if (!ptr) giterr_set_oom();
+ if (!ptr) git_error_set_oom();
return ptr;
}
@@ -25,7 +25,7 @@ static void *stdalloc__calloc(size_t nelem, size_t elsize, const char *file, int
GIT_UNUSED(file);
GIT_UNUSED(line);
- if (!ptr) giterr_set_oom();
+ if (!ptr) git_error_set_oom();
return ptr;
}
@@ -36,7 +36,7 @@ static char *stdalloc__strdup(const char *str, const char *file, int line)
GIT_UNUSED(file);
GIT_UNUSED(line);
- if (!ptr) giterr_set_oom();
+ if (!ptr) git_error_set_oom();
return ptr;
}
@@ -80,7 +80,7 @@ static void *stdalloc__realloc(void *ptr, size_t size, const char *file, int lin
GIT_UNUSED(file);
GIT_UNUSED(line);
- if (!new_ptr) giterr_set_oom();
+ if (!new_ptr) git_error_set_oom();
return new_ptr;
}