summaryrefslogtreecommitdiff
path: root/cmd/shutdown.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/shutdown.c')
-rw-r--r--cmd/shutdown.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/cmd/shutdown.c b/cmd/shutdown.c
index 39145ec..9baaef2 100644
--- a/cmd/shutdown.c
+++ b/cmd/shutdown.c
@@ -63,19 +63,6 @@ static NORETURN void usage(const char *progname, int status)
exit(status);
}
-static NORETURN void version(const char *progname)
-{
- fprintf(stdout,
-"%s (Pygos init) %s\n"
-"Copyright (C) 2018 David Oberhollenzer\n"
-"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.\n"
-"This is free software: you are free to change and redistribute it.\n"
-"There is NO WARRANTY, to the extent permitted by law.\n",
- progname, PACKAGE_VERSION);
-
- exit(EXIT_SUCCESS);
-}
-
int main(int argc, char **argv)
{
int c, ret, flags = 0;
@@ -108,7 +95,7 @@ int main(int argc, char **argv)
defact = RB_AUTOBOOT;
break;
case 'V':
- version(ptr);
+ print_version(ptr);
case 'h':
usage(ptr, EXIT_SUCCESS);
default: