summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/Service.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Ice/Service.cpp')
-rw-r--r--cpp/src/Ice/Service.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/cpp/src/Ice/Service.cpp b/cpp/src/Ice/Service.cpp
index d5f77ada648..92fb99ca528 100644
--- a/cpp/src/Ice/Service.cpp
+++ b/cpp/src/Ice/Service.cpp
@@ -1706,8 +1706,7 @@ Ice::Service::runDaemon(int argc, char* argv[], const InitializationData& initDa
//
// Associate stdin, stdout and stderr with /dev/null.
//
- int fd;
- fd = open("/dev/null", O_RDWR);
+ int fd = open("/dev/null", O_RDWR);
assert(fd == 0);
if(fd != 0)
{