Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1b9ef00

Browse files
committed
Fix some typos I introduced in WIN32-only code late last night.
Thanks to Thomas Hallgren.
1 parent42d0698 commit1b9ef00

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/2805:12:58 tgl Exp $
40+
* $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.399 2004/05/2815: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
STARTUPINFOsi;
35353535
PROCESS_INFORMATIONpi;
3536-
char*p;
35373536
inti;
35383537
intj;
35393538
charcmdLine[MAXPGPATH*2];
35403539
HANDLEchildHandleCopy;
35413540
HANDLEwaiterThread;
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)

[8]ページ先頭

©2009-2025 Movatter.jp