libroot: sync() should not return any value

This commit is contained in:
Pawel Dziepak 2013-12-22 23:14:51 +01:00
parent f1a28e35ec
commit 79c9b824e4
2 changed files with 4 additions and 9 deletions

View File

@ -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);

View File

@ -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();
}