summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-10-19 20:47:32 +0200
committerrbuj <[email protected]>2021-10-19 21:40:53 +0200
commit71c1617a51d96bcfda6106b3c464e0e23c3af3ca (patch)
treea8b3dc1fc7533ccaec2e477d47fbfc5c65fa3b95
parent3d70c8ec7b5b3847fe906974dc178d03a05bdaf7 (diff)
downloadmate-utils-int-in-bool-context.tar.bz2
mate-utils-int-in-bool-context.tar.xz
logview: converting the enum constant to a booleanint-in-bool-context
-rw-r--r--logview/src/logview-app.c2
-rw-r--r--logview/src/logview-log.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/logview/src/logview-app.c b/logview/src/logview-app.c
index fc5941fc..ba9bec7b 100644
--- a/logview/src/logview-app.c
+++ b/logview/src/logview-app.c
@@ -185,7 +185,7 @@ enumerate_next_files_async_cb (GObject *source,
continue;
}
- if (type != (G_FILE_TYPE_REGULAR || G_FILE_TYPE_SYMBOLIC_LINK) ||
+ if (((type != G_FILE_TYPE_REGULAR) && (type != G_FILE_TYPE_SYMBOLIC_LINK)) ||
!g_content_type_is_a (content_type, "text/plain"))
{
g_object_unref (info);
diff --git a/logview/src/logview-log.c b/logview/src/logview-log.c
index 10821593..d3118f10 100644
--- a/logview/src/logview-log.c
+++ b/logview/src/logview-log.c
@@ -643,7 +643,7 @@ log_load (GIOSchedulerJob *io_job,
is_archive = g_content_type_equals (content_type, "application/x-gzip");
- if (type != (G_FILE_TYPE_REGULAR || G_FILE_TYPE_SYMBOLIC_LINK) ||
+ if (((type != G_FILE_TYPE_REGULAR) && (type != G_FILE_TYPE_SYMBOLIC_LINK)) ||
(!g_content_type_is_a (content_type, "text/plain") && !is_archive))
{
err = g_error_new_literal (LOGVIEW_ERROR_QUARK, LOGVIEW_ERROR_NOT_A_LOG,