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

Commit3ffc181

Browse files
committed
Changed type of PQisRSocket to int because bool type may be undefined in the client app
1 parentd44ba2d commit3ffc181

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

‎src/interfaces/libpq/fe-connect.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6577,15 +6577,15 @@ PQsocket(const PGconn *conn)
65776577
return (conn->sock!=PGINVALID_SOCKET) ?conn->sock :-1;
65786578
}
65796579

6580-
bool
6580+
int
65816581
PQisRsocket(constPGconn*conn)
65826582
{
65836583
#ifdefWITH_RSOCKET
65846584
if (!conn)
6585-
return false;
6586-
return (conn->sock!=PGINVALID_SOCKET) ?conn->isRsocket : false;
6585+
return(int)false;
6586+
return (int)((conn->sock!=PGINVALID_SOCKET) ?conn->isRsocket : false);
65876587
#else
6588-
return false;
6588+
return(int)false;
65896589
#endif
65906590
}
65916591

‎src/interfaces/libpq/libpq-fe.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ extern intPQprotocolVersion(const PGconn *conn);
325325
externintPQserverVersion(constPGconn*conn);
326326
externchar*PQerrorMessage(constPGconn*conn);
327327
externintPQsocket(constPGconn*conn);
328-
externboolPQisRsocket(constPGconn*conn);
328+
externintPQisRsocket(constPGconn*conn);
329329
externintPQbackendPID(constPGconn*conn);
330330
externintPQconnectionNeedsPassword(constPGconn*conn);
331331
externintPQconnectionUsedPassword(constPGconn*conn);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp