summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a3e02aa)
raw | patch | inline | side by side (parent: a3e02aa)
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) |
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@455 a5681a0c-68f1-0310-ab6d-d61299d08faa
src/rrd_open.c | patch | blob | history | |
src/rrd_update.c | patch | blob | history |
diff --git a/src/rrd_open.c b/src/rrd_open.c
index 98a52e001b6322c28b6768bf400b9d60eefbdf0d..a411ddf03dea4399687e2be8abf314686b1ea695 100644 (file)
--- a/src/rrd_open.c
+++ b/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 ){
diff --git a/src/rrd_update.c b/src/rrd_update.c
index df596667485ab656479d4ff57cffbabffb4a681e..a67a93a12816f9449a7675cf6b6505b7721fdee3 100644 (file)
--- a/src/rrd_update.c
+++ b/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)
{