X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fnotify%2Fnotify.c;h=00db75314ea499d6cc01490ae7bf42016a35a365;hb=0d36972c9094de2126c717ed7d167c8729e51bf2;hp=5bf901ec6a28b8c22d1acf0f1cbbc5cf54efc27d;hpb=da927ba997d68401563b927f92e6e40e021a8e5c;p=elogind.git diff --git a/src/notify/notify.c b/src/notify/notify.c index 5bf901ec6..00db75314 100644 --- a/src/notify/notify.c +++ b/src/notify/notify.c @@ -24,7 +24,6 @@ #include #include #include -#include #include "systemd/sd-daemon.h" @@ -42,12 +41,12 @@ static bool arg_booted = false; static void help(void) { printf("%s [OPTIONS...] [VARIABLE=VALUE...]\n\n" "Notify the init system about service status updates.\n\n" - " -h --help Show this help\n" - " --version Show package version\n" - " --ready Inform the init system about service start-up completion\n" - " --pid[=PID] Set main pid of daemon\n" - " --status=TEXT Set status text\n" - " --booted Returns 0 if the system was booted up with systemd, non-zero otherwise\n", + " -h --help Show this help\n" + " --version Show package version\n" + " --ready Inform the init system about service start-up completion\n" + " --pid[=PID] Set main pid of daemon\n" + " --status=TEXT Set status text\n" + " --booted Check if the system was booted up with systemd\n", program_invocation_short_name); } @@ -198,7 +197,7 @@ int main(int argc, char* argv[]) { } if (r == 0) - r = -ENOTSUP; + r = -EOPNOTSUPP; finish: return r < 0 ? EXIT_FAILURE : EXIT_SUCCESS;