struct PQcommMethods: use C99 designated initializers
As in98afa68d93
,2c86077765
, et al.
This commit is contained in:
parent
4a8fef0d73
commit
c27f8621ee
|
@ -151,12 +151,12 @@ static int Lock_AF_UNIX(const char *unixSocketDir, const char *unixSocketPath);
|
||||||
static int Setup_AF_UNIX(const char *sock_path);
|
static int Setup_AF_UNIX(const char *sock_path);
|
||||||
|
|
||||||
static const PQcommMethods PqCommSocketMethods = {
|
static const PQcommMethods PqCommSocketMethods = {
|
||||||
socket_comm_reset,
|
.comm_reset = socket_comm_reset,
|
||||||
socket_flush,
|
.flush = socket_flush,
|
||||||
socket_flush_if_writable,
|
.flush_if_writable = socket_flush_if_writable,
|
||||||
socket_is_send_pending,
|
.is_send_pending = socket_is_send_pending,
|
||||||
socket_putmessage,
|
.putmessage = socket_putmessage,
|
||||||
socket_putmessage_noblock
|
.putmessage_noblock = socket_putmessage_noblock
|
||||||
};
|
};
|
||||||
|
|
||||||
const PQcommMethods *PqCommMethods = &PqCommSocketMethods;
|
const PQcommMethods *PqCommMethods = &PqCommSocketMethods;
|
||||||
|
|
|
@ -37,12 +37,12 @@ static int mq_putmessage(char msgtype, const char *s, size_t len);
|
||||||
static void mq_putmessage_noblock(char msgtype, const char *s, size_t len);
|
static void mq_putmessage_noblock(char msgtype, const char *s, size_t len);
|
||||||
|
|
||||||
static const PQcommMethods PqCommMqMethods = {
|
static const PQcommMethods PqCommMqMethods = {
|
||||||
mq_comm_reset,
|
.comm_reset = mq_comm_reset,
|
||||||
mq_flush,
|
.flush = mq_flush,
|
||||||
mq_flush_if_writable,
|
.flush_if_writable = mq_flush_if_writable,
|
||||||
mq_is_send_pending,
|
.is_send_pending = mq_is_send_pending,
|
||||||
mq_putmessage,
|
.putmessage = mq_putmessage,
|
||||||
mq_putmessage_noblock
|
.putmessage_noblock = mq_putmessage_noblock
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue