From 34109d5a250dc439b6727423a875218b9a5204fc Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Sat, 13 Apr 2024 12:24:05 +0300 Subject: [PATCH] Ticket #4524: code cleanup before 4.8.32 release. (set_panel_formats): fix coding style. Signed-off-by: Andrew Borodin --- src/filemanager/panel.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/filemanager/panel.c b/src/filemanager/panel.c index e6ead3567..7498b00e6 100644 --- a/src/filemanager/panel.c +++ b/src/filemanager/panel.c @@ -4704,15 +4704,15 @@ set_panel_formats (WPanel * p) panel_update_cols (WIDGET (p), p->frame_size); - if (retcode) + if (retcode != 0) message (D_ERROR, _("Warning"), _("User supplied format looks invalid, reverting to default.")); - if (retcode & 0x01) + if ((retcode & 0x01) != 0) { g_free (p->user_format); p->user_format = g_strdup (DEFAULT_USER_FORMAT); } - if (retcode & 0x02) + if ((retcode & 0x02) != 0) { g_free (p->user_status_format[p->list_format]); p->user_status_format[p->list_format] = g_strdup (DEFAULT_USER_FORMAT);