From 393b9665b38350e5df1e8268111a8fcf38a3cd1c Mon Sep 17 00:00:00 2001 From: Lon Hohberger Date: Wed, 13 Jan 2010 11:38:04 -0500 Subject: [PATCH] Minor config utility cleanups Signed-off-by: Lon Hohberger --- server/config.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/server/config.c b/server/config.c index b9198a8..7beebc3 100644 --- a/server/config.c +++ b/server/config.c @@ -14,6 +14,8 @@ #include #include "server_plugin.h" +#include + static int yesno(const char *prompt, int dfl) @@ -79,6 +81,7 @@ plugin_path_configure(config_object_t *config) do { text_input("Module search path", val, inp, sizeof(inp)); + printf("\n"); done = plugin_search(inp); if (done > 0) { plugin_dump(); @@ -244,7 +247,7 @@ listener_config_multicast(config_object_t *config) /* MULTICAST INTERFACE */ - printf("Setting a preferred interface causes fence_virtd to listen only\n" + printf("\nSetting a preferred interface causes fence_virtd to listen only\n" "on that interface. Normally, it listens on all interfaces.\n" "In environments where the virtual machines are using the host\n" "machine as a gateway, this *must* be set (typically to virbr0).\n" @@ -283,14 +286,14 @@ listener_config_multicast(config_object_t *config) /* KEY FILE */ - printf("The key file is the shared key information which is used to\n" + printf("\nThe key file is the shared key information which is used to\n" "authenticate fencing requests. The contents of this file must\n" "be distributed to each physical host and virtual machine within\n" "a cluster.\n\n"); if (sc_get(config, "listeners/multicast/@key_file", val, sizeof(val)-1)) { - strncpy(val, "none", sizeof(val)); + strncpy(val, DEFAULT_KEY_FILE, sizeof(val)); } do {