From 0f7affee748eac72f571bb2a12f32a009a7d3f36 Mon Sep 17 00:00:00 2001 From: oetiker Date: Sat, 30 Apr 2005 09:40:24 +0000 Subject: [PATCH] oops inverted code here ... windows needs rb unix not git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@452 a5681a0c-68f1-0310-ab6d-d61299d08faa --- src/rrd_open.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/rrd_open.c b/src/rrd_open.c index 4432ab4..de8c9d0 100644 --- a/src/rrd_open.c +++ b/src/rrd_open.c @@ -79,15 +79,15 @@ rrd_open(const char *file_name, FILE **in_file, rrd_t *rrd, int rdwr) 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 } -- 2.11.0