mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
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:
parent
a3a78d9daf
commit
3a714da154
@ -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;
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
|
@ -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++)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user