now code compiles with -ansi -pedantic and has less warnings

This commit is contained in:
Christian Kruse
2014-01-09 14:29:14 +01:00
parent 6e3fe059d8
commit 4c3d7f80ed
6 changed files with 16 additions and 12 deletions

View File

@@ -138,7 +138,7 @@ is_pgup(PGconn *conn, int timeout)
{
if (twice)
return false;
PQreset(conn); // reconnect
PQreset(conn); /* reconnect */
twice = true;
}
else
@@ -164,10 +164,10 @@ is_pgup(PGconn *conn, int timeout)
break;
failed:
// we need to retry, because we might just have loose the connection once
/* we need to retry, because we might just have loose the connection once */
if (twice)
return false;
PQreset(conn); // reconnect
PQreset(conn); /* reconnect */
twice = true;
}
}