summaryrefslogtreecommitdiff
path: root/src/win32/posix.h
diff options
context:
space:
mode:
authorBrodie Rao <brodie@bitheap.org>2011-10-14 14:18:02 -0700
committerBrodie Rao <brodie@bitheap.org>2011-10-14 15:57:15 -0700
commit33127043b3ef8dd8dd695ba3613eaa104a80a56b (patch)
treef17a6d405a42594e7c4a596ccd4adf684e13b413 /src/win32/posix.h
parent1776f5ab495a5748e28685da1f6da1c298cb0273 (diff)
downloadlibgit2-33127043b3ef8dd8dd695ba3613eaa104a80a56b.tar.gz
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/win32/posix.h')
-rw-r--r--src/win32/posix.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/win32/posix.h b/src/win32/posix.h
index 442717e42..c0af62b1f 100644
--- a/src/win32/posix.h
+++ b/src/win32/posix.h
@@ -19,7 +19,7 @@ GIT_INLINE(int) p_link(const char *GIT_UNUSED(old), const char *GIT_UNUSED(new))
return -1;
}
-GIT_INLINE(int) p_mkdir(const char *path, int GIT_UNUSED(mode))
+GIT_INLINE(int) p_mkdir(const char *path, mode_t GIT_UNUSED(mode))
{
wchar_t* buf = conv_utf8_to_utf16(path);
int ret = _wmkdir(buf);
@@ -41,12 +41,12 @@ extern int p_mkstemp(char *tmp_path);
extern int p_setenv(const char* name, const char* value, int overwrite);
extern int p_stat(const char* path, struct stat* buf);
extern int p_chdir(const char* path);
-extern int p_chmod(const char* path, int mode);
+extern int p_chmod(const char* path, mode_t mode);
extern int p_rmdir(const char* path);
-extern int p_access(const char* path, int mode);
+extern int p_access(const char* path, mode_t mode);
extern int p_fsync(int fd);
extern int p_open(const char *path, int flags);
-extern int p_creat(const char *path, int mode);
+extern int p_creat(const char *path, mode_t mode);
extern int p_getcwd(char *buffer_out, size_t size);
#endif