chiark / gitweb /
Add (void) where we don't care about return value
[elogind.git] / src / machine / machine.c
index 182430d78547c36de15ad429dfb7f534937c97e6..048607fb7f65762b59f41d45f97384cc8325b78e 100644 (file)
@@ -212,9 +212,9 @@ int machine_save(Machine *m) {
 
                 /* Create a symlink from the unit name to the machine
                  * name, so that we can quickly find the machine for
-                 * each given unit */
+                 * each given unit. Ignore error. */
                 sl = strjoina("/run/systemd/machines/unit:", m->unit);
-                symlink(m->name, sl);
+                (void) symlink(m->name, sl);
         }
 
 finish: