aboutsummaryrefslogtreecommitdiff
path: root/syslogd/klogd.c
diff options
context:
space:
mode:
Diffstat (limited to 'syslogd/klogd.c')
-rw-r--r--syslogd/klogd.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/syslogd/klogd.c b/syslogd/klogd.c
index ca16e4e..d2301ee 100644
--- a/syslogd/klogd.c
+++ b/syslogd/klogd.c
@@ -25,6 +25,7 @@
#include <errno.h>
#include "config.h"
+#include "util.h"
enum {
KLOG_CLOSE = 0,
@@ -48,13 +49,6 @@ static const struct option options[] = {
static const char *shortopt = "hVl:";
-static const char *versiontext =
-"klogd (Pygos init) "PACKAGE_VERSION"\n"
-"Copyright (C) 2018 David Oberhollenzer\n"
-"License GPLv3+: GNU GPL version 3 or later <https://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";
-
static const char *helptext =
"Usage: klogd [OPTION]... \n\n"
"Collect printk() messages from the kernel and forward them to syslogd.\n"
@@ -82,8 +76,7 @@ static void process_options(int argc, char **argv)
fputs(helptext, stdout);
exit(EXIT_SUCCESS);
case 'V':
- fputs(versiontext, stdout);
- exit(EXIT_SUCCESS);
+ print_version("klogd");
default:
fputs("Try `klogd --help' for more information\n",
stderr);