diff options
| author | Sven Strickroth <email@cs-ware.de> | 2019-01-24 16:44:04 +0100 |
|---|---|---|
| committer | Sven Strickroth <email@cs-ware.de> | 2019-01-24 16:44:04 +0100 |
| commit | bff7aed23bb6c40ff0c3aa5e4f115c78b9405126 (patch) | |
| tree | 6294db635e8e16e8629b8679feec7b0c27615049 /src | |
| parent | 80be19b90e4d5654e2bb347247270d210a6215e6 (diff) | |
| download | libgit2-bff7aed23bb6c40ff0c3aa5e4f115c78b9405126.tar.gz | |
Don't use deprecated constants
Follow up for PR #4917.
Signed-off-by: Sven Strickroth <email@cs-ware.de>
Diffstat (limited to 'src')
| -rw-r--r-- | src/streams/socket.c | 2 | ||||
| -rw-r--r-- | src/transports/winhttp.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/streams/socket.c b/src/streams/socket.c index cfd183a45..1c48a0ea8 100644 --- a/src/streams/socket.c +++ b/src/streams/socket.c @@ -38,7 +38,7 @@ static void net_set_error(const char *str) git_error_set(GIT_ERROR_NET, "%s: %s", str, win32_error); git__free(win32_error); } else { - git_error_set(GITERR_NET, "%s", str); + git_error_set(GIT_ERROR_NET, "%s", str); } } #else diff --git a/src/transports/winhttp.c b/src/transports/winhttp.c index d87823298..f922cb480 100644 --- a/src/transports/winhttp.c +++ b/src/transports/winhttp.c @@ -719,7 +719,7 @@ static void CALLBACK winhttp_status( else if ((status & WINHTTP_CALLBACK_STATUS_FLAG_SECURITY_CHANNEL_ERROR)) git_error_set(GIT_ERROR_NET, "security libraries could not be loaded"); else - git_error_set(GITERR_NET, "unknown security error %lu", status); + git_error_set(GIT_ERROR_NET, "unknown security error %lu", status); } static int winhttp_connect( @@ -1142,7 +1142,7 @@ replay: } if (HTTP_STATUS_OK != status_code) { - git_error_set(GITERR_NET, "request failed with status code: %lu", status_code); + git_error_set(GIT_ERROR_NET, "request failed with status code: %lu", status_code); return -1; } |
