summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2022-05-19 18:13:46 +0200
committerBenny Baumann <BenBE@geshi.org>2022-05-19 18:13:46 +0200
commitef4cbae5ea7d327b8ba27dedd645bd7b86b5fd88 (patch)
tree4267376b2965151fa779b6b45950f7de48d0a541
parent44091705dbdb2e3751c03e4935b1e5a7cf169241 (diff)
Minor code style update
-rw-r--r--linux/SystemdMeter.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/linux/SystemdMeter.c b/linux/SystemdMeter.c
index 297cc253..53ae2d28 100644
--- a/linux/SystemdMeter.c
+++ b/linux/SystemdMeter.c
@@ -221,15 +221,16 @@ static void updateViaExec(void) {
close(fdnull);
// Use of NULL in variadic functions must have a pointer cast.
// The NULL constant is not required by standard to have a pointer type.
- execlp("systemctl",
- "systemctl",
- "show",
- "--property=SystemState",
- "--property=NFailedUnits",
- "--property=NNames",
- "--property=NJobs",
- "--property=NInstalledJobs",
- (char *)NULL);
+ execlp(
+ "systemctl",
+ "systemctl",
+ "show",
+ "--property=SystemState",
+ "--property=NFailedUnits",
+ "--property=NNames",
+ "--property=NJobs",
+ "--property=NInstalledJobs",
+ (char *)NULL);
exit(127);
}
close(fdpair[1]);

© 2014-2024 Faster IT GmbH | imprint | privacy policy