udevadm: cleanup_dir: use dot_or_dot_dot()
authorMartin Wilck <mwilck@suse.com>
Fri, 21 Jan 2022 09:44:26 +0000 (10:44 +0100)
committerLuca Boccassi <bluca@debian.org>
Tue, 15 Feb 2022 01:13:47 +0000 (01:13 +0000)
commit75ff2fb73ed545d0427aea251fae6d55124f0e7c
treebd078b964d923061d5638aeb1ac59cdc047cf987
parent07b5c382361a310b3ec1fa6ccfcfc99fb4fc1ee0
udevadm: cleanup_dir: use dot_or_dot_dot()

which is safer than just checking dent[0].
Also, fix two style issues.

(cherry picked from commit 28d6e8545151d413f8614db9fa790f9f9edbb045)
(cherry picked from commit 494e3c0def197abd4ec88f7b0c3ba331a708d81e)
src/udev/udevadm-info.c