mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 10:04:32 +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
|
||||
abort->cancel stack
|
||||
skip ->warn every level, gets default
|
||||
ignore_all->remove as much as possible
|
||||
Recursive removal of files
|
||||
abort -> cancel stack
|
||||
ignore -> warn every level, gets default
|
||||
ignore_all -> remove as much as possible
|
||||
*/
|
||||
static FileProgressStatus
|
||||
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.
|
||||
*/
|
||||
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
|
||||
|| e == ELOOP || e == ENXIO);
|
||||
|
Loading…
Reference in New Issue
Block a user