[pan2/osx: 2/3] few quick cleanups
- From: Heinrich MÃller <henmull src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pan2/osx: 2/3] few quick cleanups
- Date: Sat, 14 Jan 2012 10:16:58 +0000 (UTC)
commit 4070702a9bc62f8040d71e615e6164a474e4122d
Author: Heinrich MÃller <henmull src gnome org>
Date: Fri Jan 13 08:27:23 2012 +0100
few quick cleanups
pan/data-impl/data-io.cc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/pan/data-impl/data-io.cc b/pan/data-impl/data-io.cc
index 0b5c29c..9fd9802 100644
--- a/pan/data-impl/data-io.cc
+++ b/pan/data-impl/data-io.cc
@@ -214,7 +214,7 @@ namespace
const std::string tmpfile (filename + ".tmp");
if (ok) {
-// unlink (filename.c_str());
+ remove (filename.c_str());
if (rename (tmpfile.c_str(), filename.c_str()))
std::cerr << LINE_ID << " ERROR renaming from [" << tmpfile << "] to [" << filename << "]: " << g_strerror(errno) << '\n';
if (chmod (filename.c_str(), 0600))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]