diff options
| author | nulltoken <emeric.fermas@gmail.com> | 2012-09-20 11:41:49 +0200 |
|---|---|---|
| committer | nulltoken <emeric.fermas@gmail.com> | 2012-09-20 14:10:04 +0200 |
| commit | 28abf3dbd27c232acd7dd17c6a642c793a3c80c9 (patch) | |
| tree | b9bc19c7792fdb58356b1a0acf393104cde803a3 /src/checkout.c | |
| parent | 411cb017c21e0490ed1c6438c7d5fa1b4ee9f63f (diff) | |
| download | libgit2-28abf3dbd27c232acd7dd17c6a642c793a3c80c9.tar.gz | |
checkout: prefer mode_t type usage over int
Diffstat (limited to 'src/checkout.c')
| -rw-r--r-- | src/checkout.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/checkout.c b/src/checkout.c index b20bd57e8..730e8a499 100644 --- a/src/checkout.c +++ b/src/checkout.c @@ -35,7 +35,7 @@ struct checkout_diff_data static int buffer_to_file( git_buf *buffer, const char *path, - int dir_mode, + mode_t dir_mode, int file_open_flags, mode_t file_mode) { @@ -56,10 +56,11 @@ static int buffer_to_file( static int blob_content_to_file( git_blob *blob, const char *path, - unsigned int entry_filemode, + mode_t entry_filemode, git_checkout_opts *opts) { - int error, nb_filters = 0, file_mode = opts->file_mode; + int error, nb_filters = 0; + mode_t file_mode = opts->file_mode; bool dont_free_filtered = false; git_buf unfiltered = GIT_BUF_INIT, filtered = GIT_BUF_INIT; git_vector filters = GIT_VECTOR_INIT; @@ -127,7 +128,7 @@ static int checkout_blob( git_repository *repo, git_oid *blob_oid, const char *path, - unsigned int filemode, + mode_t filemode, bool can_symlink, git_checkout_opts *opts) { |
