diff options
| author | Brodie Rao <brodie@bitheap.org> | 2011-10-14 14:18:02 -0700 |
|---|---|---|
| committer | Brodie Rao <brodie@bitheap.org> | 2011-10-14 15:57:15 -0700 |
| commit | 33127043b3ef8dd8dd695ba3613eaa104a80a56b (patch) | |
| tree | f17a6d405a42594e7c4a596ccd4adf684e13b413 /src/posix.h | |
| parent | 1776f5ab495a5748e28685da1f6da1c298cb0273 (diff) | |
| download | libgit2-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/posix.h')
| -rw-r--r-- | src/posix.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/posix.h b/src/posix.h index 59bec2794..389578d5b 100644 --- a/src/posix.h +++ b/src/posix.h @@ -42,7 +42,7 @@ extern int p_write(git_file fd, const void *buf, size_t cnt); #define p_close(fd) close(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); #ifndef GIT_WIN32 |
