Remove bad prototypes
This commit is contained in:
parent
20d58dea19
commit
97bb7d9316
@ -8,15 +8,10 @@
|
|||||||
|
|
||||||
extern File *_get_entry();
|
extern File *_get_entry();
|
||||||
|
|
||||||
int
|
int sys_open(char *path, int flag, File **filep)
|
||||||
sys_open(path, flag, filep)
|
|
||||||
char *path;
|
|
||||||
int flag;
|
|
||||||
File **filep;
|
|
||||||
{
|
{
|
||||||
register int fd;
|
int fd;
|
||||||
register File *fp;
|
File *fp;
|
||||||
long lseek();
|
|
||||||
|
|
||||||
if ((fp = _get_entry()) == (File *)0)
|
if ((fp = _get_entry()) == (File *)0)
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
@ -6,13 +6,7 @@
|
|||||||
|
|
||||||
#include "system.h"
|
#include "system.h"
|
||||||
|
|
||||||
long lseek();
|
int sys_seek(File *fp, long off, int whence, long *poff)
|
||||||
|
|
||||||
int
|
|
||||||
sys_seek(fp, off, whence, poff)
|
|
||||||
File *fp;
|
|
||||||
long off;
|
|
||||||
long *poff;
|
|
||||||
{
|
{
|
||||||
if (! fp) return 0;
|
if (! fp) return 0;
|
||||||
return (*poff = lseek(fp->o_fd, off, whence)) >= 0;
|
return (*poff = lseek(fp->o_fd, off, whence)) >= 0;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user