summaryrefslogtreecommitdiffstats
path: root/Objects/fileobject.c
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-08-31 05:18:54 (GMT)
committerFred Drake <fdrake@acm.org>2000-08-31 05:18:54 (GMT)
commit8ce159aef570c7c85a1e3c938fbb91ed4d0a6979 (patch)
tree2bbf10127ff3e9d0c3613a60bd5c448f2edab5ce /Objects/fileobject.c
parent562f62aa9b87121ba6086c4dee74130f003c9422 (diff)
downloadcpython-8ce159aef570c7c85a1e3c938fbb91ed4d0a6979.zip
cpython-8ce159aef570c7c85a1e3c938fbb91ed4d0a6979.tar.gz
cpython-8ce159aef570c7c85a1e3c938fbb91ed4d0a6979.tar.bz2
Peter Schneider-Kamp <nowonder@nowonder.de>:
Remove some of GCC's warning in -Wstrict-prototypes mode. This closes SourceForge patch #101342.
Diffstat (limited to 'Objects/fileobject.c')
-rw-r--r--Objects/fileobject.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/Objects/fileobject.c b/Objects/fileobject.c
index beb36b5..6305520 100644
--- a/Objects/fileobject.c
+++ b/Objects/fileobject.c
@@ -253,14 +253,11 @@ file_close(PyFileObject *f, PyObject *args)
/* a portable fseek() function
return 0 on success, non-zero on failure (with errno set) */
int
-_portable_fseek(fp, offset, whence)
- FILE* fp;
#if defined(HAVE_LARGEFILE_SUPPORT) && SIZEOF_OFF_T < 8 && SIZEOF_FPOS_T >= 8
- fpos_t offset;
+_portable_fseek(FILE *fp, fpos_t offset, int whence)
#else
- off_t offset;
+_portable_fseek(FILE *fp, off_t offset, int whence)
#endif
- int whence;
{
#if defined(HAVE_FSEEKO)
return fseeko(fp, offset, whence);
@@ -302,8 +299,7 @@ fpos_t
#else
off_t
#endif
-_portable_ftell(fp)
- FILE* fp;
+_portable_ftell(FILE* fp)
{
#if defined(HAVE_FTELLO) && defined(HAVE_LARGEFILE_SUPPORT)
return ftello(fp);