libroot: sync() should not return any value
This commit is contained in:
parent
f1a28e35ec
commit
79c9b824e4
@ -189,7 +189,7 @@ extern ssize_t write_pos(int fd, off_t pos, const void *buffer,size_t count);
|
||||
extern ssize_t pwrite(int fd, const void *buffer, size_t count, off_t pos);
|
||||
extern off_t lseek(int fd, off_t offset, int whence);
|
||||
|
||||
extern int sync(void);
|
||||
extern void sync(void);
|
||||
extern int fsync(int fd);
|
||||
|
||||
extern int chown(const char *path, uid_t owner, gid_t group);
|
||||
|
@ -22,14 +22,9 @@ fsync(int fd)
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
void
|
||||
sync(void)
|
||||
{
|
||||
int status = _kern_sync();
|
||||
if (status < 0) {
|
||||
__set_errno(status);
|
||||
status = -1;
|
||||
}
|
||||
|
||||
return status;
|
||||
_kern_sync();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user