aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-11-12 14:18:03 +0100
committerLennart Poettering <lennart@poettering.net>2018-11-14 17:01:55 +0100
commit13df9c398d60e441a65b11ada491f750947649bf (patch)
treead1aed8e02e8ee9ca9abc54bb6defe3863b47ebc /src/machine
parentlocaled: be more careful with the used types (diff)
downloadsystemd-13df9c398d60e441a65b11ada491f750947649bf.tar.gz
systemd-13df9c398d60e441a65b11ada491f750947649bf.tar.bz2
systemd-13df9c398d60e441a65b11ada491f750947649bf.zip
fileio: automatically add NULL sentinel to parse_env_file()
Let's modernize things a bit.
Diffstat (limited to 'src/machine')
-rw-r--r--src/machine/machine.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/machine/machine.c b/src/machine/machine.c
index 75fa94252..e114541b3 100644
--- a/src/machine/machine.c
+++ b/src/machine/machine.c
@@ -261,8 +261,7 @@ int machine_load(Machine *m) {
"CLASS", &class,
"REALTIME", &realtime,
"MONOTONIC", &monotonic,
- "NETIF", &netif,
- NULL);
+ "NETIF", &netif);
if (r < 0) {
if (r == -ENOENT)
return 0;