diff options
author | Mike Buland <eichlan@xagasoft.com> | 2009-01-15 07:01:02 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2009-01-15 07:01:02 +0000 |
commit | 46f2f8c2962532e010fcb4e3492ce97e2216fb0e (patch) | |
tree | 4b8b04bb10484e0bc23845d332a518455bcdbbc1 /src/socket.cpp | |
parent | 422a09d330d15f90c854dcc1001a544ffd4b4967 (diff) | |
download | libbu++-46f2f8c2962532e010fcb4e3492ce97e2216fb0e.tar.gz libbu++-46f2f8c2962532e010fcb4e3492ce97e2216fb0e.tar.bz2 libbu++-46f2f8c2962532e010fcb4e3492ce97e2216fb0e.tar.xz libbu++-46f2f8c2962532e010fcb4e3492ce97e2216fb0e.zip |
Fixed a minor suggestion in Bu::Socket, gcc wanted more parenthesies to make a
statement clearer (good coding guide).
Made the Taf code getters report their own errors, so much nicer. They actually
tell you what was looked for from where and that it couldn't be found instead of
a horrible old Bu::HashException key not found error.
Diffstat (limited to '')
-rw-r--r-- | src/socket.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/socket.cpp b/src/socket.cpp index c93ec6e..c57d97e 100644 --- a/src/socket.cpp +++ b/src/socket.cpp | |||
@@ -89,8 +89,8 @@ Bu::Socket::Socket( const Bu::FString &sAddr, int nPort, int nTimeout ) | |||
89 | sprintf( ibuf, "%d", nPort ); | 89 | sprintf( ibuf, "%d", nPort ); |
90 | 90 | ||
91 | int ret; | 91 | int ret; |
92 | if( ret = DYNLOAD getaddrinfo( sAddr.getStr(), ibuf, &aiHints, &pAddr ) | 92 | if( (ret = DYNLOAD getaddrinfo( |
93 | != 0 ) | 93 | sAddr.getStr(), ibuf, &aiHints, &pAddr )) != 0 ) |
94 | { | 94 | { |
95 | #ifdef WIN32 | 95 | #ifdef WIN32 |
96 | throw Bu::SocketException("Couldn't resolve hostname %s (%d).\n", | 96 | throw Bu::SocketException("Couldn't resolve hostname %s (%d).\n", |