(attrs_ignore_error): constify input param and fix typos

Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
This commit is contained in:
Yury V. Zaytsev 2024-10-19 08:52:28 +02:00
parent a3a6d00a61
commit 09320d5381

View File

@ -1435,9 +1435,9 @@ try_erase_dir (file_op_context_t *ctx, const vfs_path_t *vpath)
/* --------------------------------------------------------------------------------------------- */
/**
Recursive remove of files
Recursive removal of files
abort -> cancel stack
skip ->warn every level, gets default
ignore -> warn every level, gets default
ignore_all -> remove as much as possible
*/
static FileProgressStatus
@ -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);