zed: print out licence string as one big chunk

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #11860
This commit is contained in:
наб 2021-04-07 14:52:58 +02:00 committed by Brian Behlendorf
parent 55780d8ec0
commit 52f65648e0
1 changed files with 7 additions and 13 deletions

View File

@ -175,20 +175,14 @@ _zed_conf_display_help(const char *prog, int got_err)
static void static void
_zed_conf_display_license(void) _zed_conf_display_license(void)
{ {
const char **pp; printf(
const char *text[] = { "The ZFS Event Daemon (ZED) is distributed under the terms of the\n"
"The ZFS Event Daemon (ZED) is distributed under the terms of the", " Common Development and Distribution License (CDDL-1.0)\n"
" Common Development and Distribution License (CDDL-1.0)", " <http://opensource.org/licenses/CDDL-1.0>.\n"
" <http://opensource.org/licenses/CDDL-1.0>.", "\n"
"",
"Developed at Lawrence Livermore National Laboratory" "Developed at Lawrence Livermore National Laboratory"
" (LLNL-CODE-403049).", " (LLNL-CODE-403049).\n"
"", "\n");
NULL
};
for (pp = text; *pp; pp++)
printf("%s\n", *pp);
exit(EXIT_SUCCESS); exit(EXIT_SUCCESS);
} }