mirror of
https://github.com/postgres/postgres.git
synced 2025-07-24 14:22:24 +03:00
backend launchers void * arguments for binary data
Change backend launcher functions to take void * for binary data instead of char *. This removes the need for numerous casts. Reviewed-by: Dagfinn Ilmari Mannsåker <ilmari@ilmari.org> Discussion: https://www.postgresql.org/message-id/flat/fd1fcedb-3492-4fc8-9e3e-74b97f2db6c7%40eisentraut.org
This commit is contained in:
@ -1326,7 +1326,7 @@ reset_syncing_flag()
|
||||
* information periodically in order to create and sync the slots.
|
||||
*/
|
||||
void
|
||||
ReplSlotSyncWorkerMain(char *startup_data, size_t startup_data_len)
|
||||
ReplSlotSyncWorkerMain(const void *startup_data, size_t startup_data_len)
|
||||
{
|
||||
WalReceiverConn *wrconn = NULL;
|
||||
char *dbname;
|
||||
|
@ -180,7 +180,7 @@ ProcessWalRcvInterrupts(void)
|
||||
|
||||
/* Main entry point for walreceiver process */
|
||||
void
|
||||
WalReceiverMain(char *startup_data, size_t startup_data_len)
|
||||
WalReceiverMain(const void *startup_data, size_t startup_data_len)
|
||||
{
|
||||
char conninfo[MAXCONNINFO];
|
||||
char *tmp_conninfo;
|
||||
|
Reference in New Issue
Block a user