diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2006-05-31 13:35:57 +0000 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2006-05-31 13:35:57 +0000 |
commit | 06f15f3be119a0af7625c5a787ba69cd7312308a (patch) | |
tree | bfc637df5788b828f45ac1147e127d966a70ab3d /cpp/src/IceGrid/ServerI.cpp | |
parent | Fixed HP compile issues (diff) | |
download | ice-06f15f3be119a0af7625c5a787ba69cd7312308a.tar.bz2 ice-06f15f3be119a0af7625c5a787ba69cd7312308a.tar.xz ice-06f15f3be119a0af7625c5a787ba69cd7312308a.zip |
Fixed AIX compile errors
Diffstat (limited to 'cpp/src/IceGrid/ServerI.cpp')
-rw-r--r-- | cpp/src/IceGrid/ServerI.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/cpp/src/IceGrid/ServerI.cpp b/cpp/src/IceGrid/ServerI.cpp index 08b8015d2cd..74d2db36c8b 100644 --- a/cpp/src/IceGrid/ServerI.cpp +++ b/cpp/src/IceGrid/ServerI.cpp @@ -2318,9 +2318,8 @@ ServerI::updateConfigFile(const string& serverDir, const CommunicatorDescriptorP } } - ofstream configfile; - configfile.open(configFilePath.c_str(), ios::out); - if(!configfile) + ofstream configfile(configFilePath.c_str()); + if(!configfile.good()) { throw "couldn't create configuration file: " + configFilePath; } @@ -2351,9 +2350,8 @@ ServerI::updateDbEnv(const string& serverDir, const DbEnvDescriptor& dbEnv) if(!dbEnv.properties.empty()) { string file = dbEnvHome + "/DB_CONFIG"; - ofstream configfile; - configfile.open(file.c_str(), ios::out); - if(!configfile) + ofstream configfile(file.c_str()); + if(!configfile.good()) { throw "couldn't create configuration file `" + file + "'"; } |