summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mack <daniel@zonque.org>2015-07-28 14:38:31 +0200
committerDaniel Mack <daniel@zonque.org>2015-07-28 14:38:31 +0200
commit4e18de3d27dc66d2675ab6cbd6a35d36c94e1157 (patch)
treedce8241f2bd572cffc487f2c52b872f3e8954ceb
parentf89d10ae45107c675adbe02e2b1878ee0f5af5ee (diff)
udev: Fix udev_builtin_run_once()
Honour the boolean return value type. This was an oversight in f89d10ae4.
-rw-r--r--src/udev/udev-builtin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/udev/udev-builtin.c b/src/udev/udev-builtin.c
index 3ebefa84e2..4f625251d6 100644
--- a/src/udev/udev-builtin.c
+++ b/src/udev/udev-builtin.c
@@ -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;
}