Browse files

Fix a couple of warnings from clang.

  • Loading branch information...
1 parent 5057733 commit c992425fd3d234cb60cb29bd75fce598914fc350 @dpage dpage committed Feb 25, 2014
View
6 connection.cpp
@@ -397,8 +397,8 @@ bool connInfo::IsValidIP()
while (tkip4.HasMoreTokens())
{
- unsigned long val = 0;
- if (!tkip4.GetNextToken().ToULong(&val))
+ long val = 0;
+ if (!tkip4.GetNextToken().ToLong(&val))
break;
if (count == 0 || count == 3)
if (val > 0 && val < 255)
@@ -456,10 +456,12 @@ wxString connInfo::getConnectionString()
// host or hostaddr
if (!host.IsEmpty())
+ {
if (IsValidIP())
connStr += wxT(" hostaddr=") + host;
else
connStr += wxT(" host=") + host;
+ }
// connection timeout
if (connection_timeout != 0)
View
0 sql/pgagent--unpackaged--3.4.0.sql → sql/pgagent--unpackaged--3.sql
File renamed without changes.

0 comments on commit c992425

Please sign in to comment.