From 52f65648e015aeede9b6073b9ec65899f381b9da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=BD=D0=B0=D0=B1?= Date: Wed, 7 Apr 2021 14:52:58 +0200 Subject: [PATCH] zed: print out licence string as one big chunk MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Brian Behlendorf Signed-off-by: Ahelenia ZiemiaƄska Closes #11860 --- cmd/zed/zed_conf.c | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/cmd/zed/zed_conf.c b/cmd/zed/zed_conf.c index 1dbbb3b65b..abeaabd7e0 100644 --- a/cmd/zed/zed_conf.c +++ b/cmd/zed/zed_conf.c @@ -175,20 +175,14 @@ _zed_conf_display_help(const char *prog, int got_err) static void _zed_conf_display_license(void) { - const char **pp; - const char *text[] = { - "The ZFS Event Daemon (ZED) is distributed under the terms of the", - " Common Development and Distribution License (CDDL-1.0)", - " .", - "", + printf( + "The ZFS Event Daemon (ZED) is distributed under the terms of the\n" + " Common Development and Distribution License (CDDL-1.0)\n" + " .\n" + "\n" "Developed at Lawrence Livermore National Laboratory" - " (LLNL-CODE-403049).", - "", - NULL - }; - - for (pp = text; *pp; pp++) - printf("%s\n", *pp); + " (LLNL-CODE-403049).\n" + "\n"); exit(EXIT_SUCCESS); }