pspp-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 02/18] file-name: Do not make output files line-buffered in fn_op


From: Ben Pfaff
Subject: [PATCH 02/18] file-name: Do not make output files line-buffered in fn_open().
Date: Sat, 19 Mar 2011 17:09:48 -0700

I don't see any reason to do this.  I can't see anything in the commit
log for this file or in OChangeLog that explains why it was done.
---
 src/data/file-name.c |   11 ++---------
 1 files changed, 2 insertions(+), 9 deletions(-)

diff --git a/src/data/file-name.c b/src/data/file-name.c
index 1b31048..2988d50 100644
--- a/src/data/file-name.c
+++ b/src/data/file-name.c
@@ -1,5 +1,5 @@
 /* PSPP - a program for statistical analysis.
-   Copyright (C) 1997-9, 2000, 2006, 2007, 2009, 2010 Free Software 
Foundation, Inc.
+   Copyright (C) 1997-9, 2000, 2006, 2007, 2009, 2010, 2011 Free Software 
Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -221,14 +221,7 @@ fn_open (const char *fn, const char *mode)
     }
   else
 #endif
-    {
-      FILE *f = fopen (fn, mode);
-
-      if (f && mode[0] != 'r')
-       setvbuf (f, NULL, _IOLBF, 0);
-
-      return f;
-    }
+    return fopen (fn, mode);
 }
 
 /* Counterpart to fn_open that closes file F with name FN; returns 0
-- 
1.7.2.3




reply via email to

[Prev in Thread] Current Thread [Next in Thread]