From: Tom Lane Date: Thu, 30 Sep 1999 02:17:23 +0000 (+0000) Subject: Un-break optarg() call --- some peoples' optarg libraries X-Git-Tag: REL7_0~1402 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1764d9579e13c4f757ae44bbc1cc3e4a1b68b9fa;p=postgresql Un-break optarg() call --- some peoples' optarg libraries don't like extraneous colons in the option list... --- diff --git a/src/backend/postmaster/postmaster.c b/src/backend/postmaster/postmaster.c index 32f5aa253c..1215408a55 100644 --- a/src/backend/postmaster/postmaster.c +++ b/src/backend/postmaster/postmaster.c @@ -10,7 +10,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.118 1999/09/27 15:47:43 vadim Exp $ + * $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.119 1999/09/30 02:17:23 tgl Exp $ * * NOTES * @@ -404,7 +404,7 @@ PostmasterMain(int argc, char *argv[]) DataDir = getenv("PGDATA"); /* default value */ opterr = 0; - while ((opt = getopt(nonblank_argc, argv, "A:a:B:b:D:i::dm:MN:no:p:Ss")) != EOF) + while ((opt = getopt(nonblank_argc, argv, "A:a:B:b:D:di:m:MN:no:p:Ss")) != EOF) { switch (opt) { @@ -578,12 +578,12 @@ PostmasterMain(int argc, char *argv[]) if (NetServer) { - status = StreamServerPort(hostName, PostPortName, &ServerSock_INET); - if (status != STATUS_OK) + status = StreamServerPort(hostName, PostPortName, &ServerSock_INET); + if (status != STATUS_OK) { - fprintf(stderr, "%s: cannot create INET stream port\n", - progname); - exit(1); + fprintf(stderr, "%s: cannot create INET stream port\n", + progname); + exit(1); } }