Skip to content

Commit 5524a46

Browse files
authored
Merge pull request libgit2#4957 from csware/deprecated
Don't use deprecated constants
2 parents 80be19b + bff7aed commit 5524a46

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/streams/socket.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ static void net_set_error(const char *str)
3838
git_error_set(GIT_ERROR_NET, "%s: %s", str, win32_error);
3939
git__free(win32_error);
4040
} else {
41-
git_error_set(GITERR_NET, "%s", str);
41+
git_error_set(GIT_ERROR_NET, "%s", str);
4242
}
4343
}
4444
#else

src/transports/winhttp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,7 @@ static void CALLBACK winhttp_status(
719719
else if ((status & WINHTTP_CALLBACK_STATUS_FLAG_SECURITY_CHANNEL_ERROR))
720720
git_error_set(GIT_ERROR_NET, "security libraries could not be loaded");
721721
else
722-
git_error_set(GITERR_NET, "unknown security error %lu", status);
722+
git_error_set(GIT_ERROR_NET, "unknown security error %lu", status);
723723
}
724724

725725
static int winhttp_connect(
@@ -1142,7 +1142,7 @@ static int winhttp_stream_read(
11421142
}
11431143

11441144
if (HTTP_STATUS_OK != status_code) {
1145-
git_error_set(GITERR_NET, "request failed with status code: %lu", status_code);
1145+
git_error_set(GIT_ERROR_NET, "request failed with status code: %lu", status_code);
11461146
return -1;
11471147
}
11481148

0 commit comments

Comments
 (0)