Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrodie Rao <brodie@bitheap.org>2011-10-15 01:18:02 +0400
committerBrodie Rao <brodie@bitheap.org>2011-10-15 02:57:15 +0400
commit33127043b3ef8dd8dd695ba3613eaa104a80a56b (patch)
treef17a6d405a42594e7c4a596ccd4adf684e13b413 /src/fileops.h
parent1776f5ab495a5748e28685da1f6da1c298cb0273 (diff)
fileops/posix: replace usage of "int mode" with "mode_t mode"
Note: Functions exported from fileops take const mode_t, while the underlying POSIX wrappers take mode_t.
Diffstat (limited to 'src/fileops.h')
-rw-r--r--src/fileops.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/fileops.h b/src/fileops.h
index 5b69199d2..176888895 100644
--- a/src/fileops.h
+++ b/src/fileops.h
@@ -48,18 +48,18 @@ extern int git_futils_exists(const char *path);
* Create and open a file, while also
* creating all the folders in its path
*/
-extern int git_futils_creat_withpath(const char *path, int mode);
+extern int git_futils_creat_withpath(const char *path, const mode_t mode);
/**
* Create an open a process-locked file
*/
-extern int git_futils_creat_locked(const char *path, int mode);
+extern int git_futils_creat_locked(const char *path, const mode_t mode);
/**
* Create an open a process-locked file, while
* also creating all the folders in its path
*/
-extern int git_futils_creat_locked_withpath(const char *path, int mode);
+extern int git_futils_creat_locked_withpath(const char *path, const mode_t mode);
/**
* Check if the given path points to a directory
@@ -74,7 +74,7 @@ extern int git_futils_isfile(const char *path);
/**
* Create a path recursively
*/
-extern int git_futils_mkdir_r(const char *path, int mode);
+extern int git_futils_mkdir_r(const char *path, const mode_t mode);
/**
* Create all the folders required to contain