diff options
Diffstat (limited to 'src/timesync/timesyncd.c')
-rw-r--r-- | src/timesync/timesyncd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/timesync/timesyncd.c b/src/timesync/timesyncd.c index b13db1a3ec..54da88b7ad 100644 --- a/src/timesync/timesyncd.c +++ b/src/timesync/timesyncd.c @@ -1146,10 +1146,10 @@ static bool network_is_online(void) { int r; r = sd_network_get_operational_state(&state); - if (r >= 0 && (streq("routable", state) || streq("degraded", state))) + if (r >= 0 && STR_IN_SET(state, "routable", "degraded")) return true; - else - return false; + + return false; } static int manager_network_event_handler(sd_event_source *s, int fd, uint32_t revents, |