From 6a84723d7d6162e7e745ce8f16b9b5d80bea1af7 Mon Sep 17 00:00:00 2001
From: Neil Conway <neilc@samurai.com>
Date: Thu, 23 Sep 2004 00:47:44 +0000
Subject: [PATCH] =?UTF-8?q?Minor=20tweak=20to=20pg=5Fcontroldata=20usage?=
 =?UTF-8?q?=20information,=20per=20suggestion=20from=20Dennis=20Bj=C3=B6rk?=
 =?UTF-8?q?lund.=20Also,=20remove=20some=20redundant=20#include=20directiv?=
 =?UTF-8?q?es.?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/bin/pg_controldata/pg_controldata.c | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/src/bin/pg_controldata/pg_controldata.c b/src/bin/pg_controldata/pg_controldata.c
index 2bfc30f9e6e..e8b9c8b677b 100644
--- a/src/bin/pg_controldata/pg_controldata.c
+++ b/src/bin/pg_controldata/pg_controldata.c
@@ -6,7 +6,7 @@
  * copyright (c) Oliver Elphick <olly@lfix.co.uk>, 2001;
  * licence: BSD
  *
- * $PostgreSQL: pgsql/src/bin/pg_controldata/pg_controldata.c,v 1.19 2004/08/29 05:06:53 momjian Exp $
+ * $PostgreSQL: pgsql/src/bin/pg_controldata/pg_controldata.c,v 1.20 2004/09/23 00:47:44 neilc Exp $
  */
 #include "postgres.h"
 
@@ -14,8 +14,6 @@
 #include <time.h>
 #include <sys/stat.h>
 #include <fcntl.h>
-#include <locale.h>
-#include <errno.h>
 
 #include "catalog/pg_control.h"
 
@@ -30,15 +28,15 @@ usage(const char *progname)
 		(
 		 _(
 		   "Usage:\n"
-		   "  %s [OPTION]\n\n"
+		   "  %s [OPTION] [DATADIR]\n\n"
 		   "Options:\n"
-		"  DATADIR        show cluster control information for DATADIR\n"
 		   "  --help         show this help, then exit\n"
 		   "  --version      output version information, then exit\n"
 		   ),
 		 progname
 		);
-	printf(_("\nIf no data directory is specified, the environment variable PGDATA\nis used.\n\n"));
+	printf(_("\nIf no data directory (DATADIR) is specified, "
+			 "the environment variable PGDATA\nis used.\n\n"));
 	printf(_("Report bugs to <pgsql-bugs@postgresql.org>.\n"));
 }
 
-- 
GitLab