From: Zbigniew Jędrzejewski-Szmek Date: Wed, 11 Apr 2018 07:27:32 +0000 (+0200) Subject: shared/sleep-config: rename misnamed function X-Git-Tag: v239~419^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4638cd39af495d89014c31b449f62a2618c390f3;p=platform%2Fupstream%2Fsystemd.git shared/sleep-config: rename misnamed function --- diff --git a/src/shared/sleep-config.c b/src/shared/sleep-config.c index 1b684b9..26703b3 100644 --- a/src/shared/sleep-config.c +++ b/src/shared/sleep-config.c @@ -239,7 +239,7 @@ int find_hibernate_location(char **device, char **type, size_t *size, size_t *us return -ENOSYS; } -static bool enough_memory_for_hibernation(void) { +static bool enough_swap_for_hibernation(void) { _cleanup_free_ char *active = NULL; unsigned long long act = 0; size_t size = 0, used = 0; @@ -399,7 +399,7 @@ int can_sleep(const char *verb) { if (streq(verb, "suspend")) return true; - if (!enough_memory_for_hibernation()) + if (!enough_swap_for_hibernation()) return -ENOSPC; return true;