summaryrefslogtreecommitdiff
path: root/src/shared/sleep-config.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2020-06-10 16:53:24 +0200
committerLennart Poettering <lennart@poettering.net>2020-06-11 10:33:57 +0200
commit1326de01588a765e96ed5b187566d10655aacc01 (patch)
tree1b458618bb7f2cd7e1fada5067e639dcd221e19d /src/shared/sleep-config.h
parentc732e8797987057671b9c2b23a38ce768080f039 (diff)
downloadsystemd-1326de01588a765e96ed5b187566d10655aacc01.tar.gz
sleep-config: modernize destructors
All other destructors in the same .c file return NULL, let's make sure the one where this so far wasn't done does it too.
Diffstat (limited to 'src/shared/sleep-config.h')
-rw-r--r--src/shared/sleep-config.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/sleep-config.h b/src/shared/sleep-config.h
index faa3c0519a..86dfbf19be 100644
--- a/src/shared/sleep-config.h
+++ b/src/shared/sleep-config.h
@@ -20,7 +20,7 @@ typedef struct SleepConfig {
usec_t hibernate_delay_sec; /* HibernateDelaySec */
} SleepConfig;
-void free_sleep_config(SleepConfig *sc);
+SleepConfig* free_sleep_config(SleepConfig *sc);
DEFINE_TRIVIAL_CLEANUP_FUNC(SleepConfig*, free_sleep_config);
/* entry in /proc/swaps */