mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-18 09:19:24 +03:00
(attrs_ignore_error): constify input param and fix typos
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
This commit is contained in:
parent
a3a6d00a61
commit
09320d5381
@ -1435,10 +1435,10 @@ try_erase_dir (file_op_context_t *ctx, const vfs_path_t *vpath)
|
|||||||
/* --------------------------------------------------------------------------------------------- */
|
/* --------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Recursive remove of files
|
Recursive removal of files
|
||||||
abort->cancel stack
|
abort -> cancel stack
|
||||||
skip ->warn every level, gets default
|
ignore -> warn every level, gets default
|
||||||
ignore_all->remove as much as possible
|
ignore_all -> remove as much as possible
|
||||||
*/
|
*/
|
||||||
static FileProgressStatus
|
static FileProgressStatus
|
||||||
recursive_erase (file_op_total_context_t *tctx, file_op_context_t *ctx, const vfs_path_t *vpath)
|
recursive_erase (file_op_total_context_t *tctx, file_op_context_t *ctx, const vfs_path_t *vpath)
|
||||||
@ -2195,7 +2195,7 @@ end_bg_process (file_op_context_t *ctx, enum OperationMode mode)
|
|||||||
* On some Linux kernels (tested on 4.9, 5.4) there is ENOTTY on tmpfs.
|
* On some Linux kernels (tested on 4.9, 5.4) there is ENOTTY on tmpfs.
|
||||||
*/
|
*/
|
||||||
static inline gboolean
|
static inline gboolean
|
||||||
attrs_ignore_error (int e)
|
attrs_ignore_error (const int e)
|
||||||
{
|
{
|
||||||
return (e == ENOTSUP || e == EOPNOTSUPP || e == ENOSYS || e == EINVAL || e == ENOTTY
|
return (e == ENOTSUP || e == EOPNOTSUPP || e == ENOSYS || e == EINVAL || e == ENOTTY
|
||||||
|| e == ELOOP || e == ENXIO);
|
|| e == ELOOP || e == ENXIO);
|
||||||
|
Loading…
Reference in New Issue
Block a user