a19bc6
From 16ea84cf76e69975336fc347226ee3f58be25bc2 Mon Sep 17 00:00:00 2001
a19bc6
From: Daniel Mack <daniel@zonque.org>
a19bc6
Date: Fri, 24 Apr 2015 16:14:48 +0200
a19bc6
Subject: [PATCH] core: return 0 from device_serialize()
a19bc6
a19bc6
Fixes:
a19bc6
a19bc6
  CC       src/core/libsystemd_core_la-device.lo
a19bc6
src/core/device.c: In function 'device_serialize':
a19bc6
src/core/device.c:169:1: warning: control reaches end of non-void function [-Wreturn-type]
a19bc6
 }
a19bc6
 ^
a19bc6
a19bc6
Cherry-picked from: 0108f6ecc85eccc0177579f575d7bc3d56d43bc6
a19bc6
Resolves: #1403249
a19bc6
---
a19bc6
 src/core/device.c | 2 ++
a19bc6
 1 file changed, 2 insertions(+)
a19bc6
a19bc6
diff --git a/src/core/device.c b/src/core/device.c
181b3f
index bdc8466ab..befbae83f 100644
a19bc6
--- a/src/core/device.c
a19bc6
+++ b/src/core/device.c
a19bc6
@@ -168,6 +168,8 @@ static int device_serialize(Unit *u, FILE *f, FDSet *fds) {
a19bc6
         assert(fds);
a19bc6
 
a19bc6
         unit_serialize_item(u, f, "state", device_state_to_string(d->state));
a19bc6
+
a19bc6
+        return 0;
a19bc6
 }
a19bc6
 
a19bc6
 static int device_deserialize_item(Unit *u, const char *key, const char *value, FDSet *fds) {