diff options
| author | Edward Thomson <ethomson@edwardthomson.com> | 2018-12-27 13:47:34 -0600 |
|---|---|---|
| committer | Edward Thomson <ethomson@edwardthomson.com> | 2019-01-22 22:30:35 +0000 |
| commit | f673e232afe22eb865cdc915e55a2df6493f0fbb (patch) | |
| tree | e79e3e6fb1e1d78367679aea75e66c8141b4daa8 /src/config_mem.c | |
| parent | 647dfdb42d06514a85c1499f1be88a32b8a4c24b (diff) | |
| download | libgit2-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/config_mem.c')
| -rw-r--r-- | src/config_mem.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/config_mem.c b/src/config_mem.c index 18e405ad5..c2ecfda12 100644 --- a/src/config_mem.c +++ b/src/config_mem.c @@ -24,7 +24,7 @@ typedef struct { static int config_error_readonly(void) { - giterr_set(GITERR_CONFIG, "this backend is read-only"); + git_error_set(GIT_ERROR_CONFIG, "this backend is read-only"); return -1; } @@ -63,7 +63,7 @@ static int read_variable_cb( return -1; entry = git__calloc(1, sizeof(git_config_entry)); - GITERR_CHECK_ALLOC(entry); + GIT_ERROR_CHECK_ALLOC(entry); entry->name = git_buf_detach(&buf); entry->value = var_value ? git__strdup(var_value) : NULL; entry->level = parse_data->level; @@ -170,7 +170,7 @@ static int config_memory_snapshot(git_config_backend **out, git_config_backend * { GIT_UNUSED(out); GIT_UNUSED(backend); - giterr_set(GITERR_CONFIG, "this backend does not support snapshots"); + git_error_set(GIT_ERROR_CONFIG, "this backend does not support snapshots"); return -1; } @@ -191,7 +191,7 @@ int git_config_backend_from_string(git_config_backend **out, const char *cfg, si config_memory_backend *backend; backend = git__calloc(1, sizeof(config_memory_backend)); - GITERR_CHECK_ALLOC(backend); + GIT_ERROR_CHECK_ALLOC(backend); if (git_config_entries_new(&backend->entries) < 0) { git__free(backend); |
