chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tree-wide: there is no ENOTSUP on linux
[elogind.git]
/
src
/
core
/
unit.c
diff --git
a/src/core/unit.c
b/src/core/unit.c
index ec4fa82ec184259acb4b159d44f7c1c109a5f9eb..f9aca0188ca7abec64229121db6783bcbbf96884 100644
(file)
--- a/
src/core/unit.c
+++ b/
src/core/unit.c
@@
-1456,7
+1456,7
@@
int unit_start(Unit *u) {
}
if (UNIT_VTABLE(u)->supported && !UNIT_VTABLE(u)->supported(u->manager))
}
if (UNIT_VTABLE(u)->supported && !UNIT_VTABLE(u)->supported(u->manager))
- return -E
NOTSU
P;
+ return -E
OPNOTSUP
P;
/* If it is stopped, but we cannot start it, then fail */
if (!UNIT_VTABLE(u)->start)
/* If it is stopped, but we cannot start it, then fail */
if (!UNIT_VTABLE(u)->start)
@@
-3016,7
+3016,7
@@
int unit_kill(Unit *u, KillWho w, int signo, sd_bus_error *error) {
assert(signo < _NSIG);
if (!UNIT_VTABLE(u)->kill)
assert(signo < _NSIG);
if (!UNIT_VTABLE(u)->kill)
- return -E
NOTSU
P;
+ return -E
OPNOTSUP
P;
return UNIT_VTABLE(u)->kill(u, w, signo, error);
}
return UNIT_VTABLE(u)->kill(u, w, signo, error);
}