Remove bad prototypes

This commit is contained in:
Godzil 2013-03-19 09:46:36 +01:00 committed by Manoël Trapier
parent 20d58dea19
commit 97bb7d9316
2 changed files with 4 additions and 15 deletions

View 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;

View 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;