summaryrefslogtreecommitdiffstats
path: root/src/ac-power
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2023-06-05 11:49:35 +0200
committerLennart Poettering <lennart@poettering.net>2023-06-05 12:18:21 +0200
commitaf4e8e86ec91389a04df2b1b8621c0ad5c84917b (patch)
tree14fe71addd6fa8acaeadd9ec0954922551b12ab9 /src/ac-power
parentadd support for KSM (diff)
downloadsystemd-af4e8e86ec91389a04df2b1b8621c0ad5c84917b.tar.xz
systemd-af4e8e86ec91389a04df2b1b8621c0ad5c84917b.zip
battery-util: split out code that checks AC power state into its own .c/.h pair
No code change, just some splitting out of the relevant code from udev-util.[ch]. This makes sense on its own, but is also prepartion to move the code that checks for low battery state into battery-util.[ch], too.
Diffstat (limited to 'src/ac-power')
-rw-r--r--src/ac-power/ac-power.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ac-power/ac-power.c b/src/ac-power/ac-power.c
index 853635047d..62181a83df 100644
--- a/src/ac-power/ac-power.c
+++ b/src/ac-power/ac-power.c
@@ -2,9 +2,9 @@
#include <getopt.h>
+#include "battery-util.h"
#include "build.h"
#include "main-func.h"
-#include "udev-util.h"
static bool arg_verbose = false;