From 86923b95e908c33121ffaf8d75c3cda5b042233e Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Sat, 23 Mar 2019 13:57:51 +0000 Subject: [PATCH] trivial: Fix CI failure by using the correct enum type --- src/fu-common.h | 1 + src/fu-engine.c | 2 +- src/fu-engine.h | 1 - src/fu-main.c | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/fu-common.h b/src/fu-common.h index ae52c7c42..d7d8c6dae 100644 --- a/src/fu-common.h +++ b/src/fu-common.h @@ -13,6 +13,7 @@ G_BEGIN_DECLS typedef enum { FU_APP_FLAGS_NONE = 0, FU_APP_FLAGS_NO_IDLE_SOURCES = 1 << 0, + FU_APP_FLAGS_IS_OFFLINE = 1 << 1, FU_APP_FLAGS_LAST } FuAppFlags; diff --git a/src/fu-engine.c b/src/fu-engine.c index 587272b1b..188be5cac 100644 --- a/src/fu-engine.c +++ b/src/fu-engine.c @@ -1468,7 +1468,7 @@ fu_engine_install (FuEngine *self, } /* schedule this for the next reboot if not in system-update.target */ - if ((self->app_flags & FU_ENGINE_LOAD_FLAG_IS_OFFLINE) == 0 && + if ((self->app_flags & FU_APP_FLAGS_IS_OFFLINE) == 0 && (flags & FWUPD_INSTALL_FLAG_OFFLINE) > 0) return fu_plugin_runner_schedule_update (plugin, device, blob_cab, error); diff --git a/src/fu-engine.h b/src/fu-engine.h index a61ba2a86..2b6d2202d 100644 --- a/src/fu-engine.h +++ b/src/fu-engine.h @@ -25,7 +25,6 @@ G_DECLARE_FINAL_TYPE (FuEngine, fu_engine, FU, ENGINE, GObject) typedef enum { FU_ENGINE_LOAD_FLAG_NONE = 0, FU_ENGINE_LOAD_FLAG_READONLY_FS = 1 << 0, - FU_ENGINE_LOAD_FLAG_IS_OFFLINE = 1 << 1, FU_ENGINE_LOAD_FLAG_LAST } FuEngineLoadFlags; diff --git a/src/fu-main.c b/src/fu-main.c index 31bc14ecb..d4cf93d54 100644 --- a/src/fu-main.c +++ b/src/fu-main.c @@ -1371,7 +1371,7 @@ fu_main_on_bus_acquired_cb (GDBusConnection *connection, /* are we running in the offline target */ if (fu_main_is_running_offline_update (priv)) - fu_engine_add_app_flag (priv->engine, FU_ENGINE_LOAD_FLAG_IS_OFFLINE); + fu_engine_add_app_flag (priv->engine, FU_APP_FLAGS_IS_OFFLINE); /* connect to D-Bus directly */ priv->proxy_uid =