From: David Given Date: Sat, 6 Jun 2015 21:54:44 +0000 (+0200) Subject: Warning fixes. Change the prototypes of the read() and write() syscalls X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=b1d74beaad26f9661bf100c9b251edd4a0c7e306;p=FUZIX.git Warning fixes. Change the prototypes of the read() and write() syscalls to match the standard. --- diff --git a/Applications/util/fdisk.h b/Applications/util/fdisk.h index 6a2177a4..a3d36da2 100644 --- a/Applications/util/fdisk.h +++ b/Applications/util/fdisk.h @@ -26,7 +26,7 @@ unsigned char partitiontable[512]; typedef struct { int cmd; char *help; - void (*func)(); + void (*func)(void); } Funcs; struct hd_geometry geometry; diff --git a/Library/include/syscalls.h b/Library/include/syscalls.h index e05bd7db..5944a527 100644 --- a/Library/include/syscalls.h +++ b/Library/include/syscalls.h @@ -98,8 +98,8 @@ extern int creat(const char *path, mode_t mode); extern int mknod(const char *path, mode_t mode, dev_t dev); extern int link(const char *path, const char *path2); extern int unlink(const char *path); -extern int read(int fd, char *buf, int len); -extern int write(int fd, const char *buf, int len); +extern ssize_t read(int fd, void *buf, int len); +extern ssize_t write(int fd, const void *buf, int len); extern int chdir(const char *path); extern int sync(void); extern int access(const char *path, int way);