[systemd-commits] src/core
Daniel Mack
zonque at kemper.freedesktop.org
Fri Apr 24 07:15:36 PDT 2015
src/core/device.c | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 0108f6ecc85eccc0177579f575d7bc3d56d43bc6
Author: Daniel Mack <daniel at zonque.org>
Date: Fri Apr 24 16:14:48 2015 +0200
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]
}
^
diff --git a/src/core/device.c b/src/core/device.c
index 63bae97..19b688d 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) {
More information about the systemd-commits
mailing list