diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2004-05-28 15:14:03 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2004-05-28 15:14:03 +0000 |
commit | 1b9ef0025d17b0a744956ad32502d241dc571dbf (patch) | |
tree | 070fc7914de126b69512fce0c2b5216e1d483105 /src | |
parent | 42d069886f38687839388c615af608706508b557 (diff) | |
download | postgresql-1b9ef0025d17b0a744956ad32502d241dc571dbf.tar.gz postgresql-1b9ef0025d17b0a744956ad32502d241dc571dbf.zip |
Fix some typos I introduced in WIN32-only code late last night.
Thanks to Thomas Hallgren.
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/postmaster/postmaster.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/backend/postmaster/postmaster.c b/src/backend/postmaster/postmaster.c index 07812c7b310..89a22815098 100644 --- a/src/backend/postmaster/postmaster.c +++ b/src/backend/postmaster/postmaster.c @@ -37,7 +37,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.398 2004/05/28 05:12:58 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.399 2004/05/28 15:14:03 tgl Exp $ * * NOTES * @@ -3520,7 +3520,7 @@ ShmemBackendArrayRemove(pid_t pid) ereport(WARNING, (errmsg_internal("unable to find backend entry with pid %d", - pid))); + (int) pid))); } #endif /* EXEC_BACKEND */ @@ -3533,7 +3533,6 @@ win32_forkexec(const char *path, char *argv[]) { STARTUPINFO si; PROCESS_INFORMATION pi; - char *p; int i; int j; char cmdLine[MAXPGPATH * 2]; @@ -3541,8 +3540,8 @@ win32_forkexec(const char *path, char *argv[]) HANDLE waiterThread; /* Format the cmd line */ - cmdline[sizeof(cmdLine)-1] = '\0'; - cmdline[sizeof(cmdLine)-2] = '\0'; + cmdLine[sizeof(cmdLine)-1] = '\0'; + cmdLine[sizeof(cmdLine)-2] = '\0'; snprintf(cmdLine, sizeof(cmdLine)-1, "\"%s\"", path); i = 0; while (argv[++i] != NULL) @@ -3550,7 +3549,7 @@ win32_forkexec(const char *path, char *argv[]) j = strlen(cmdLine); snprintf(cmdLine+j, sizeof(cmdLine)-1-j, " \"%s\"", argv[i]); } - if (cmdline[sizeof(cmdLine)-2] != '\0') + if (cmdLine[sizeof(cmdLine)-2] != '\0') { elog(LOG, "subprocess command line too long"); return -1; |