libroot: sync() should not return any value

This commit is contained in:
Pawel Dziepak
2014-01-16 20:18:22 +01:00
parent f1a28e35ec
commit 79c9b824e4
2 changed files with 4 additions and 9 deletions
+1 -1
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);
+3 -8
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();
}