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.c | |
| 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.c')
| -rw-r--r-- | src/posix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/posix.c b/src/posix.c index 1b85b053d..7cd0749b6 100644 --- a/src/posix.c +++ b/src/posix.c @@ -17,7 +17,7 @@ int p_open(const char *path, int flags) return open(path, flags | O_BINARY); } -int p_creat(const char *path, int mode) +int p_creat(const char *path, mode_t mode) { return open(path, O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, mode); } |
