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/write.c')
-rw-r--r--libgloss/write.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libgloss/write.c b/libgloss/write.c
index 28b7ea37a..80bcd4a77 100644
--- a/libgloss/write.c
+++ b/libgloss/write.c
@@ -23,10 +23,11 @@ extern int outbyte (char x);
*/
int
write (int fd,
- char *buf,
- int nbytes)
+ const void *buf_,
+ size_t nbytes)
{
int i;
+ const char *buf = buf_;
for (i = 0; i < nbytes; i++) {
if (*(buf + i) == '\n') {