Fix -Wconversion warning for mask/mode values: use mode_t instead of int.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andreas Mohr 2015-11-21 17:21:23 +03:00 committed by Andrew Borodin
parent a3a78d9daf
commit 3a714da154
5 changed files with 7 additions and 6 deletions

View File

@ -987,7 +987,7 @@ struct stat *
vfs_s_default_stat (struct vfs_class *me, mode_t mode)
{
static struct stat st;
int myumask;
mode_t myumask;
(void) me;

View File

@ -188,7 +188,8 @@ mc_def_ungetlocalcopy (const vfs_path_t * filename_vpath,
int
mc_open (const vfs_path_t * vpath, int flags, ...)
{
int mode = 0, result = -1;
int result = -1;
mode_t mode = 0;
const vfs_path_element_t *path_element;
if (vpath == NULL)
@ -199,7 +200,7 @@ mc_open (const vfs_path_t * vpath, int flags, ...)
{
va_list ap;
va_start (ap, flags);
mode = va_arg (ap, int);
mode = va_arg (ap, mode_t);
va_end (ap);
}

View File

@ -1288,7 +1288,7 @@ file_mask_dialog (file_op_context_t * ctx, FileOperation operation,
}
else
{
int i2;
mode_t i2;
ctx->preserve = ctx->preserve_uidgid = FALSE;
i2 = umask (0);

View File

@ -129,7 +129,7 @@ typedef struct
gboolean preserve_uidgid;
/* The bits to preserve in created files' modes on file copy */
int umask_kill;
mode_t umask_kill;
/* The mask of files to actually operate on */
char *dest_mask;

View File

@ -162,7 +162,7 @@ static int
test_type (WPanel * panel, char *arg)
{
int result = 0; /* False by default */
int st_mode = panel->dir.list[panel->selected].st.st_mode;
mode_t st_mode = panel->dir.list[panel->selected].st.st_mode;
for (; *arg != 0; arg++)
{