From 09320d538142f8674a267c5a8af969c285b405f9 Mon Sep 17 00:00:00 2001 From: "Yury V. Zaytsev" Date: Sat, 19 Oct 2024 08:52:28 +0200 Subject: [PATCH] (attrs_ignore_error): constify input param and fix typos Signed-off-by: Yury V. Zaytsev --- src/filemanager/file.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/filemanager/file.c b/src/filemanager/file.c index 72e06dfcc..e1568095d 100644 --- a/src/filemanager/file.c +++ b/src/filemanager/file.c @@ -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);