mirror of
https://github.com/systemd/systemd.git
synced 2025-03-31 14:50:15 +03:00
udev: Fix udev_builtin_run_once()
Honour the boolean return value type. This was an oversight in f89d10ae4.
This commit is contained in:
parent
f89d10ae45
commit
4e18de3d27
@ -97,7 +97,7 @@ const char *udev_builtin_name(enum udev_builtin_cmd cmd) {
|
||||
|
||||
bool udev_builtin_run_once(enum udev_builtin_cmd cmd) {
|
||||
if (!builtins[cmd])
|
||||
return -EOPNOTSUPP;
|
||||
return false;
|
||||
|
||||
return builtins[cmd]->run_once;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user