Unverified Commit 5524a467 by Edward Thomson Committed by GitHub

Merge pull request #4957 from csware/deprecated

Don't use deprecated constants
parents 80be19b9 bff7aed2
......@@ -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
......
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment