X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fcore%2Funit.c;fp=src%2Fcore%2Funit.c;h=f9aca0188ca7abec64229121db6783bcbbf96884;hp=ec4fa82ec184259acb4b159d44f7c1c109a5f9eb;hb=15411c0cb1192799b37ec8f25d6f30e8d7292fc6;hpb=32a568fb90bf0a22a3007fa670305403a5d0bb72 diff --git a/src/core/unit.c b/src/core/unit.c index ec4fa82ec..f9aca0188 100644 --- 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)) - return -ENOTSUP; + return -EOPNOTSUPP; /* 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) - return -ENOTSUP; + return -EOPNOTSUPP; return UNIT_VTABLE(u)->kill(u, w, signo, error); }