X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata%2Ffile-name.c;h=2988d50295b073482b3bee10f274834a56bec6d0;hb=ca0a72e321421d02a1fd6df943425eff4bd1a257;hp=e3047a3354cd3506917cefcb3e0a23587138981c;hpb=d0b91eae59319ab2756d0d43b9cb15eb9cd3c234;p=pspp-builds.git diff --git a/src/data/file-name.c b/src/data/file-name.c index e3047a33..2988d502 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 @@ -27,7 +27,7 @@ #include #include "data/settings.h" -#include "libpspp/hash.h" +#include "libpspp/hash-functions.h" #include "libpspp/message.h" #include "libpspp/str.h" #include "libpspp/version.h" @@ -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