fseek(fp, 0, SEEK_CUR)

WATANABE Hirofumi eban@os.rim.or.jp
Sun Jun 23 20:13:00 GMT 2002


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)
 	{



More information about the Newlib mailing list