diff options
Diffstat (limited to 'src/core/device.c')
-rw-r--r-- | src/core/device.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/device.c b/src/core/device.c index bd69fa029a..6354429751 100644 --- a/src/core/device.c +++ b/src/core/device.c @@ -12,6 +12,7 @@ #include "log.h" #include "parse-util.h" #include "path-util.h" +#include "serialize.h" #include "stat-util.h" #include "string-util.h" #include "swap.h" @@ -225,10 +226,10 @@ static int device_serialize(Unit *u, FILE *f, FDSet *fds) { assert(f); assert(fds); - unit_serialize_item(u, f, "state", device_state_to_string(d->state)); + (void) serialize_item(f, "state", device_state_to_string(d->state)); if (device_found_to_string_many(d->found, &s) >= 0) - unit_serialize_item(u, f, "found", s); + (void) serialize_item(f, "found", s); return 0; } |