From 3b4fa64dd9140a5233035351d00605738d134159 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 5 Jul 2007 09:59:45 +1000 Subject: [PATCH 1/2] fixed error message on bad IP/port (This used to be ctdb commit ad2d8615c028d55bc5e94c9d7bd8432cafde4a69) --- ctdb/tools/ctdb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ctdb/tools/ctdb.c b/ctdb/tools/ctdb.c index e6c41d93b3b..96286795879 100644 --- a/ctdb/tools/ctdb.c +++ b/ctdb/tools/ctdb.c @@ -316,7 +316,7 @@ static int kill_tcp(struct ctdb_context *ctdb, int argc, const char **argv) } if (!parse_ip_port(argv[0], &src)) { - printf("Bad IP:port '%s'\n", argv[1]); + printf("Bad IP:port '%s'\n", argv[0]); return -1; } @@ -350,7 +350,7 @@ static int tickle_tcp(struct ctdb_context *ctdb, int argc, const char **argv) } if (!parse_ip_port(argv[0], &src)) { - printf("Bad IP:port '%s'\n", argv[1]); + printf("Bad IP:port '%s'\n", argv[0]); return -1; } From 871ef93b82198f1c035df0165bad31cc498c3524 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 5 Jul 2007 10:00:51 +1000 Subject: [PATCH 2/2] fixed help layout (This used to be ctdb commit ee8acf166961838a3a82d658a66407ba5ccb4939) --- ctdb/tools/ctdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ctdb/tools/ctdb.c b/ctdb/tools/ctdb.c index 96286795879..371f6e867a6 100644 --- a/ctdb/tools/ctdb.c +++ b/ctdb/tools/ctdb.c @@ -907,7 +907,7 @@ static void usage(void) " -t set timelimit for control in seconds (default %u)\n", options.timelimit); printf("Controls:\n"); for (i=0;i