Remove bad prototypes
authorGodzil <godzil@godzil.net>
Tue, 19 Mar 2013 08:46:36 +0000 (09:46 +0100)
committerManoël Trapier <godzil@MacBook-Pro.home>
Wed, 24 Jun 2015 22:41:46 +0000 (23:41 +0100)
modules/src/system/open.c
modules/src/system/seek.c

index cf24f32..592007a 100644 (file)
@@ -8,15 +8,10 @@
 
 extern File *_get_entry();
 
-int
-sys_open(path, flag, filep)
-       char *path;
-       int flag;
-       File **filep;
+int sys_open(char *path, int flag, File **filep)
 {
-       register int fd;
-       register File *fp;
-       long lseek();
+       int fd;
+    File *fp;
 
        if ((fp = _get_entry()) == (File *)0)
                return 0;
index e4d1f85..11759aa 100644 (file)
@@ -6,13 +6,7 @@
 
 #include "system.h"
 
-long lseek();
-
-int
-sys_seek(fp, off, whence, poff)
-       File *fp;
-       long off;
-       long *poff;
+int sys_seek(File *fp, long off, int whence, long *poff)
 {
        if (! fp) return 0;
        return (*poff = lseek(fp->o_fd, off, whence)) >= 0;