This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

fseek(fp, 0, SEEK_CUR)


Hi,

Braces are required of multi-line statements.

Index: libc/stdio/fseek.c
===================================================================
RCS file: /cvs/src/src/newlib/libc/stdio/fseek.c,v
retrieving revision 1.3
diff -u -r1.3 fseek.c
--- libc/stdio/fseek.c	8 May 2002 00:12:48 -0000	1.3
+++ libc/stdio/fseek.c	24 Jun 2002 02:52:41 -0000
@@ -141,8 +141,10 @@
 	{
 	  curoff = (*seekfn) (fp->_cookie, (fpos_t) 0, SEEK_CUR);
 	  if (curoff == -1L)
-            _funlockfile(fp);
-	    return EOF;
+	    {
+	      _funlockfile(fp);
+	      return EOF;
+	    }
 	}
       if (fp->_flags & __SRD)
 	{


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]