Remove bad prototypes
This commit is contained in:
parent
20d58dea19
commit
97bb7d9316
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user