]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/udev/udev-watch.c
Add some handling to remaining unlinkat calls
[thirdparty/systemd.git] / src / udev / udev-watch.c
index 351cb6345a42f07edb37bef45dd9d7f1c983d4c4..61179ce03db8083ad85094f9f45eaa895c5754b1 100644 (file)
@@ -79,7 +79,7 @@ void udev_watch_restore(struct udev *udev) {
                         udev_watch_begin(udev, dev);
                         udev_device_unref(dev);
 unlink:
-                        unlinkat(dirfd(dir), ent->d_name, 0);
+                        (void) unlinkat(dirfd(dir), ent->d_name, 0);
                 }
 
                 closedir(dir);