Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'libgloss/read.c')
-rw-r--r--libgloss/read.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libgloss/read.c b/libgloss/read.c
index 24108ce0d..83a3b549b 100644
--- a/libgloss/read.c
+++ b/libgloss/read.c
@@ -22,10 +22,11 @@ extern char inbyte (void);
*/
int
read (int fd,
- char *buf,
- int nbytes)
+ void *buf_,
+ size_t nbytes)
{
int i = 0;
+ char *buf = buf_;
for (i = 0; i < nbytes; i++) {
*(buf + i) = inbyte();