mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-09 15:00:04 +00:00
Fix MSVC compilation warnings
This commit is contained in:
parent
bf9a2e98b8
commit
26911cbd92
@ -502,27 +502,27 @@ static int setup_empty_tmp_dir()
|
|||||||
{
|
{
|
||||||
char path[GIT_PATH_MAX];
|
char path[GIT_PATH_MAX];
|
||||||
|
|
||||||
if (mkdir(empty_tmp_dir, 0755))
|
if (p_mkdir(empty_tmp_dir, 0755))
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
git_path_join(path, empty_tmp_dir, "/one");
|
git_path_join(path, empty_tmp_dir, "/one");
|
||||||
if (mkdir(path, 0755))
|
if (p_mkdir(path, 0755))
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
git_path_join(path, empty_tmp_dir, "/one/two_one");
|
git_path_join(path, empty_tmp_dir, "/one/two_one");
|
||||||
if (mkdir(path, 0755))
|
if (p_mkdir(path, 0755))
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
git_path_join(path, empty_tmp_dir, "/one/two_two");
|
git_path_join(path, empty_tmp_dir, "/one/two_two");
|
||||||
if (mkdir(path, 0755))
|
if (p_mkdir(path, 0755))
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
git_path_join(path, empty_tmp_dir, "/one/two_two/three");
|
git_path_join(path, empty_tmp_dir, "/one/two_two/three");
|
||||||
if (mkdir(path, 0755))
|
if (p_mkdir(path, 0755))
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
git_path_join(path, empty_tmp_dir, "/two");
|
git_path_join(path, empty_tmp_dir, "/two");
|
||||||
if (mkdir(path, 0755))
|
if (p_mkdir(path, 0755))
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user