summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: cf14c4c)
raw | patch | inline | side by side (parent: cf14c4c)
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) |
program/src/rrd_open.c | patch | blob | history |
diff --git a/program/src/rrd_open.c b/program/src/rrd_open.c
index 4432ab49a2b60a3d09b1f2eac80f744ffcdccfa4..de8c9d0944f2d7fe54ae1b062c01facbae638e02 100644 (file)
--- a/program/src/rrd_open.c
+++ b/program/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
}