Skip to content

Commit 1b9ef00

Browse files
committed
Fix some typos I introduced in WIN32-only code late last night.
Thanks to Thomas Hallgren.
1 parent 42d0698 commit 1b9ef00

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/backend/postmaster/postmaster.c

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
*
3838
*
3939
* IDENTIFICATION
40-
* $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.398 2004/05/28 05:12:58 tgl Exp $
40+
* $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.399 2004/05/28 15:14:03 tgl Exp $
4141
*
4242
* NOTES
4343
*
@@ -3520,7 +3520,7 @@ ShmemBackendArrayRemove(pid_t pid)
35203520

35213521
ereport(WARNING,
35223522
(errmsg_internal("unable to find backend entry with pid %d",
3523-
pid)));
3523+
(int) pid)));
35243524
}
35253525

35263526
#endif /* EXEC_BACKEND */
@@ -3533,24 +3533,23 @@ win32_forkexec(const char *path, char *argv[])
35333533
{
35343534
STARTUPINFO si;
35353535
PROCESS_INFORMATION pi;
3536-
char *p;
35373536
int i;
35383537
int j;
35393538
char cmdLine[MAXPGPATH * 2];
35403539
HANDLE childHandleCopy;
35413540
HANDLE waiterThread;
35423541

35433542
/* Format the cmd line */
3544-
cmdline[sizeof(cmdLine)-1] = '\0';
3545-
cmdline[sizeof(cmdLine)-2] = '\0';
3543+
cmdLine[sizeof(cmdLine)-1] = '\0';
3544+
cmdLine[sizeof(cmdLine)-2] = '\0';
35463545
snprintf(cmdLine, sizeof(cmdLine)-1, "\"%s\"", path);
35473546
i = 0;
35483547
while (argv[++i] != NULL)
35493548
{
35503549
j = strlen(cmdLine);
35513550
snprintf(cmdLine+j, sizeof(cmdLine)-1-j, " \"%s\"", argv[i]);
35523551
}
3553-
if (cmdline[sizeof(cmdLine)-2] != '\0')
3552+
if (cmdLine[sizeof(cmdLine)-2] != '\0')
35543553
{
35553554
elog(LOG, "subprocess command line too long");
35563555
return -1;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy