summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorDaniel Mack <daniel@zonque.org>2015-04-24 16:14:48 +0200
committerDaniel Mack <daniel@zonque.org>2015-04-24 16:14:48 +0200
commit0108f6ecc85eccc0177579f575d7bc3d56d43bc6 (patch)
treefa8e2faa5dcbdd9412efd76cf767de8e39ba693b /src/core
parentbe847e82cf95bf8eb589778df2aa2b3d1d7ae99e (diff)
core: return 0 from device_serialize()
Fixes: CC src/core/libsystemd_core_la-device.lo src/core/device.c: In function 'device_serialize': src/core/device.c:169:1: warning: control reaches end of non-void function [-Wreturn-type] } ^
Diffstat (limited to 'src/core')
-rw-r--r--src/core/device.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/device.c b/src/core/device.c
index 63bae978a6..19b688df55 100644
--- a/src/core/device.c
+++ b/src/core/device.c
@@ -166,6 +166,8 @@ static int device_serialize(Unit *u, FILE *f, FDSet *fds) {
assert(fds);
unit_serialize_item(u, f, "state", device_state_to_string(d->state));
+
+ return 0;
}
static int device_deserialize_item(Unit *u, const char *key, const char *value, FDSet *fds) {