From 4db349c1f32b4a313d12d114137432441633d00a Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Tue, 5 Jan 2010 16:01:46 +0000 Subject: 2010-01-06 Tatsuhiro Tsujikawa Untabify. Fixed one line in copyright which is longer than 80 columns. * src * test --- src/DHTAutoSaveCommand.cc | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'src/DHTAutoSaveCommand.cc') diff --git a/src/DHTAutoSaveCommand.cc b/src/DHTAutoSaveCommand.cc index c376bb3a..bbd222a3 100644 --- a/src/DHTAutoSaveCommand.cc +++ b/src/DHTAutoSaveCommand.cc @@ -16,7 +16,7 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * In addition, as a special exception, the copyright holders give * permission to link the code of portions of this program with the @@ -88,13 +88,13 @@ void DHTAutoSaveCommand::save() if(!f.isFile()) { File dir(f.getDirname()); if(!dir.exists()) { - if(!dir.mkdirs()) { - logger->info(EX_MAKE_DIR, dir.getPath().c_str(), strerror(errno)); - return; - } + if(!dir.mkdirs()) { + logger->info(EX_MAKE_DIR, dir.getPath().c_str(), strerror(errno)); + return; + } } else if(!dir.isDir()) { - logger->info(EX_NOT_DIRECTORY, dir.getPath().c_str()); - return; + logger->info(EX_NOT_DIRECTORY, dir.getPath().c_str()); + return; } } } @@ -117,19 +117,19 @@ void DHTAutoSaveCommand::save() { std::ofstream o(tempFile.c_str(), std::ios::out|std::ios::binary); if(!o) { - throw DL_ABORT_EX - (StringFormat("Failed to save DHT routing table to %s. cause:%s", - dhtFile.c_str(), strerror(errno)).str()); + throw DL_ABORT_EX + (StringFormat("Failed to save DHT routing table to %s. cause:%s", + dhtFile.c_str(), strerror(errno)).str()); } serializer.serialize(o); } if(!File(tempFile).renameTo(dhtFile)) { logger->error("Cannot move file from %s to %s.", - tempFile.c_str(), dhtFile.c_str()); + tempFile.c_str(), dhtFile.c_str()); } } catch(RecoverableException& e) { logger->error("Exception caught while saving DHT routing table to %s", - e, dhtFile.c_str()); + e, dhtFile.c_str()); } } -- cgit