diff options
author | Jose <jose@zeroc.com> | 2013-01-22 23:41:49 +0100 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2013-01-22 23:41:49 +0100 |
commit | 19f0c17162b6039ecacbb8b1d53c7eb5992ce153 (patch) | |
tree | e4ffb69a99fda90c33f9e2d7437870d73d2a64b0 /cpp/src/IceUtil/Cond.cpp | |
parent | ICE-5091 - IceGrid/secure demo needs admin key (diff) | |
download | ice-19f0c17162b6039ecacbb8b1d53c7eb5992ce153.tar.bz2 ice-19f0c17162b6039ecacbb8b1d53c7eb5992ce153.tar.xz ice-19f0c17162b6039ecacbb8b1d53c7eb5992ce153.zip |
Minor code style fixes
Diffstat (limited to 'cpp/src/IceUtil/Cond.cpp')
-rw-r--r-- | cpp/src/IceUtil/Cond.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/cpp/src/IceUtil/Cond.cpp b/cpp/src/IceUtil/Cond.cpp index c515e36f53b..1aa8cc85a82 100644 --- a/cpp/src/IceUtil/Cond.cpp +++ b/cpp/src/IceUtil/Cond.cpp @@ -324,11 +324,9 @@ IceUtil::Cond::timedDowait(const Time& timeout) const IceUtil::Cond::Cond() { - int rc; - pthread_condattr_t attr; - rc = pthread_condattr_init(&attr); + int rc = pthread_condattr_init(&attr); if(rc != 0) { throw ThreadSyscallException(__FILE__, __LINE__, rc); @@ -358,8 +356,7 @@ IceUtil::Cond::Cond() IceUtil::Cond::~Cond() { #ifndef NDEBUG - int rc = 0; - rc = pthread_cond_destroy(&_cond); + int rc = pthread_cond_destroy(&_cond); assert(rc == 0); #else pthread_cond_destroy(&_cond); |