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

Commitc27f862

Browse files
committed
struct PQcommMethods: use C99 designated initializers
As in98afa68,2c86077, et al.
1 parent4a8fef0 commitc27f862

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

‎src/backend/libpq/pqcomm.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -151,12 +151,12 @@ static intLock_AF_UNIX(const char *unixSocketDir, const char *unixSocketPath);
151151
staticintSetup_AF_UNIX(constchar*sock_path);
152152

153153
staticconstPQcommMethodsPqCommSocketMethods= {
154-
socket_comm_reset,
155-
socket_flush,
156-
socket_flush_if_writable,
157-
socket_is_send_pending,
158-
socket_putmessage,
159-
socket_putmessage_noblock
154+
.comm_reset=socket_comm_reset,
155+
.flush=socket_flush,
156+
.flush_if_writable=socket_flush_if_writable,
157+
.is_send_pending=socket_is_send_pending,
158+
.putmessage=socket_putmessage,
159+
.putmessage_noblock=socket_putmessage_noblock
160160
};
161161

162162
constPQcommMethods*PqCommMethods=&PqCommSocketMethods;

‎src/backend/libpq/pqmq.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ static intmq_putmessage(char msgtype, const char *s, size_t len);
3737
staticvoidmq_putmessage_noblock(charmsgtype,constchar*s,size_tlen);
3838

3939
staticconstPQcommMethodsPqCommMqMethods= {
40-
mq_comm_reset,
41-
mq_flush,
42-
mq_flush_if_writable,
43-
mq_is_send_pending,
44-
mq_putmessage,
45-
mq_putmessage_noblock
40+
.comm_reset=mq_comm_reset,
41+
.flush=mq_flush,
42+
.flush_if_writable=mq_flush_if_writable,
43+
.is_send_pending=mq_is_send_pending,
44+
.putmessage=mq_putmessage,
45+
.putmessage_noblock=mq_putmessage_noblock
4646
};
4747

4848
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp