9
0
Fork 0

fs: fix return type of read

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Alexander Aring 2013-02-17 22:05:00 +01:00 committed by Sascha Hauer
parent 927eb75795
commit e48b144071
2 changed files with 2 additions and 2 deletions

View File

@ -754,7 +754,7 @@ int ioctl(int fd, int request, void *buf)
return ret;
}
int read(int fd, void *buf, size_t count)
ssize_t read(int fd, void *buf, size_t count)
{
struct device_d *dev;
struct fs_driver_d *fsdrv;

View File

@ -113,7 +113,7 @@ int close(int fd);
int flush(int fd);
int lstat(const char *filename, struct stat *s);
int stat(const char *filename, struct stat *s);
int read(int fd, void *buf, size_t count);
ssize_t read(int fd, void *buf, size_t count);
int ioctl(int fd, int request, void *buf);
ssize_t write(int fd, const void *buf, size_t count);