diff options
author | Bruce Momjian <bruce@momjian.us> | 1997-08-12 20:16:25 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 1997-08-12 20:16:25 +0000 |
commit | edb58721b8f7fd76b5dfa3bf83c683f2e266abd3 (patch) | |
tree | 4f1fe8679d97cb881fe3bcd6a46cf63a50cef1e8 /src/backend/tcop/postgres.c | |
parent | 4b851b1cfc629a9d3802aa5c22572593663f5fe0 (diff) | |
download | postgresql-edb58721b8f7fd76b5dfa3bf83c683f2e266abd3.tar.gz postgresql-edb58721b8f7fd76b5dfa3bf83c683f2e266abd3.zip |
Fix pgproc names over 15 chars in output. Add strNcpy() function. remove some (void) casts that are unnecessary.
Diffstat (limited to 'src/backend/tcop/postgres.c')
-rw-r--r-- | src/backend/tcop/postgres.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c index f5809739a51..4b802875f47 100644 --- a/src/backend/tcop/postgres.c +++ b/src/backend/tcop/postgres.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.39 1997/08/06 05:38:35 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.40 1997/08/12 20:15:49 momjian Exp $ * * NOTES * this is the "main" module of the postgres backend and @@ -300,7 +300,7 @@ SocketBackend(char *inBuf, bool multiplexedBackend) * get input from the frontend * ---------------- */ - (void) strcpy(qtype, "?"); + strcpy(qtype, "?"); if (pq_getnchar(qtype,0,1) == EOF) { /* ------------ * when front-end applications quits/dies @@ -865,7 +865,7 @@ PostgresMain(int argc, char *argv[]) or 'localhost' */ if (!(hostName = getenv("PGHOST"))) { if (gethostname(hostbuf, MAXHOSTNAMELEN) < 0) - (void) strcpy(hostbuf, "localhost"); + strcpy(hostbuf, "localhost"); hostName = hostbuf; } @@ -1010,7 +1010,7 @@ PostgresMain(int argc, char *argv[]) * o - send output (stdout and stderr) to the given file * ---------------- */ - (void) strncpy(OutputFileName, optarg, MAXPGPATH); + strNcpy(OutputFileName, optarg, MAXPGPATH); break; case 'p': /* started by postmaster */ @@ -1292,7 +1292,7 @@ PostgresMain(int argc, char *argv[]) */ if (IsUnderPostmaster == false) { puts("\nPOSTGRES backend interactive interface"); - puts("$Revision: 1.39 $ $Date: 1997/08/06 05:38:35 $"); + puts("$Revision: 1.40 $ $Date: 1997/08/12 20:15:49 $"); } /* ---------------- |