summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 61d2c5d)
raw | patch | inline | side by side (parent: 61d2c5d)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sat, 30 Apr 2005 09:40:24 +0000 (09:40 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sat, 30 Apr 2005 09:40:24 +0000 (09:40 +0000) |
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@452 a5681a0c-68f1-0310-ab6d-d61299d08faa
src/rrd_open.c | patch | blob | history |
diff --git a/src/rrd_open.c b/src/rrd_open.c
index 4432ab49a2b60a3d09b1f2eac80f744ffcdccfa4..de8c9d0944f2d7fe54ae1b062c01facbae638e02 100644 (file)
--- a/src/rrd_open.c
+++ b/src/rrd_open.c
rrd_init(rrd);
if (rdwr == RRD_READONLY) {
#if defined(WIN32) && !defined(__CYGWIN__) && !defined(__CYGWIN32__)
- mode = "r";
-#else
mode = "rb";
+#else
+ mode = "r";
#endif
} else {
#if defined(WIN32) && !defined(__CYGWIN__) && !defined(__CYGWIN32__)
- mode = "r+";
-#else
mode = "rb+";
+#else
+ mode = "r+";
#endif
}