mirror of
https://github.com/postgres/postgres.git
synced 2025-10-18 04:29:09 +03:00
Fix incorrect const qualifier
Commit 7202d72787
added in passing some const qualifiers, but the one
on the postmaster_child_launch() startup_data argument was incorrect,
because the function itself modifies the pointed-to data. This is
hidden from the compiler because of casts. The qualifiers on the
functions called by postmaster_child_launch() are still correct.
This commit is contained in:
@@ -229,7 +229,7 @@ PostmasterChildName(BackendType child_type)
|
|||||||
*/
|
*/
|
||||||
pid_t
|
pid_t
|
||||||
postmaster_child_launch(BackendType child_type, int child_slot,
|
postmaster_child_launch(BackendType child_type, int child_slot,
|
||||||
const void *startup_data, size_t startup_data_len,
|
void *startup_data, size_t startup_data_len,
|
||||||
ClientSocket *client_sock)
|
ClientSocket *client_sock)
|
||||||
{
|
{
|
||||||
pid_t pid;
|
pid_t pid;
|
||||||
|
@@ -108,7 +108,7 @@ extern PGDLLIMPORT struct ClientSocket *MyClientSocket;
|
|||||||
/* prototypes for functions in launch_backend.c */
|
/* prototypes for functions in launch_backend.c */
|
||||||
extern pid_t postmaster_child_launch(BackendType child_type,
|
extern pid_t postmaster_child_launch(BackendType child_type,
|
||||||
int child_slot,
|
int child_slot,
|
||||||
const void *startup_data,
|
void *startup_data,
|
||||||
size_t startup_data_len,
|
size_t startup_data_len,
|
||||||
struct ClientSocket *client_sock);
|
struct ClientSocket *client_sock);
|
||||||
const char *PostmasterChildName(BackendType child_type);
|
const char *PostmasterChildName(BackendType child_type);
|
||||||
|
Reference in New Issue
Block a user