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

Commit1c69f13

Browse files
committed
Clean up compile warnings.
1 parente165910 commit1c69f13

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.192 2002/08/17 12:33:17 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.193 2002/08/18 00:06:01 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -19,6 +19,7 @@
1919
#include<fcntl.h>
2020
#include<errno.h>
2121
#include<ctype.h>
22+
#include<time.h>
2223

2324
#include"libpq-fe.h"
2425
#include"libpq-int.h"
@@ -1078,18 +1079,18 @@ connectDBComplete(PGconn *conn)
10781079
}
10791080

10801081

1081-
while (NULL==rp||remains.tv_sec>0||remains.tv_sec==0&&remains.tv_usec>0)
1082+
while (rp==NULL||remains.tv_sec>0||(remains.tv_sec==0&&remains.tv_usec>0))
10821083
{
10831084
/*
10841085
* If connecting timeout is set, get current time.
10851086
*/
1086-
if (NULL!=rp&&-1==gettimeofday(&start_time,NULL))
1087+
if (rp!=NULL&&gettimeofday(&start_time,NULL)==-1)
10871088
{
10881089
conn->status=CONNECTION_BAD;
10891090
return0;
10901091
}
10911092

1092-
/*
1093+
/*
10931094
* Wait, if necessary.Note that the initial state (just after
10941095
* PQconnectStart) is to wait for the socket to select for
10951096
* writing.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp