summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f01781c)
raw | patch | inline | side by side (parent: f01781c)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sat, 30 Apr 2005 09:51:12 +0000 (09:51 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sat, 30 Apr 2005 09:51:12 +0000 (09:51 +0000) |
program/src/rrd_open.c | patch | blob | history | |
program/src/rrd_update.c | patch | blob | history |
diff --git a/program/src/rrd_open.c b/program/src/rrd_open.c
index 98a52e001b6322c28b6768bf400b9d60eefbdf0d..a411ddf03dea4399687e2be8abf314686b1ea695 100644 (file)
--- a/program/src/rrd_open.c
+++ b/program/src/rrd_open.c
rrd_init(rrd);
if (rdwr == RRD_READONLY) {
-#if defined(WIN32)
mode = "rb";
-#else
- mode = "r";
-#endif
} else {
-#if defined(WIN32)
mode = "rb+";
-#else
- mode = "r+";
-#endif
}
if (((*in_file) = fopen(file_name,mode)) == NULL ){
index df596667485ab656479d4ff57cffbabffb4a681e..a67a93a12816f9449a7675cf6b6505b7721fdee3 100644 (file)
--- a/program/src/rrd_update.c
+++ b/program/src/rrd_update.c
* critical except during the burning cycles. */
if (schedule_smooth)
{
-#if defined(WIN32) && !defined(__CYGWIN__) && !defined(__CYGWIN32__)
rrd_file = fopen(filename,"rb+");
-#else
- rrd_file = fopen(filename,"r+");
-#endif
rra_start = rra_begin;
for (i = 0; i < rrd.stat_head -> rra_cnt; ++i)
{