From eac8d1b596c3368c5c5d8f95962e0e9bbed05c9d Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Thu, 8 Apr 2004 21:16:16 +0000 Subject: [PATCH] Read and write functions accept void pointers instead of byte*. --- lib/mainloop.c | 4 ++-- lib/mainloop.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/mainloop.c b/lib/mainloop.c index f630664c..11ef1baa 100644 --- a/lib/mainloop.c +++ b/lib/mainloop.c @@ -157,7 +157,7 @@ file_write_handler(struct main_file *fi) } void -file_read(struct main_file *fi, byte *buf, uns len) +file_read(struct main_file *fi, void *buf, uns len) { ASSERT(fi->n.next); if (len) @@ -177,7 +177,7 @@ file_read(struct main_file *fi, byte *buf, uns len) } void -file_write(struct main_file *fi, byte *buf, uns len) +file_write(struct main_file *fi, void *buf, uns len) { ASSERT(fi->n.next); if (len) diff --git a/lib/mainloop.h b/lib/mainloop.h index 025dbe7b..3cddb418 100644 --- a/lib/mainloop.h +++ b/lib/mainloop.h @@ -54,8 +54,8 @@ enum main_file_err_cause { void file_add(struct main_file *fi); void file_chg(struct main_file *fi); void file_del(struct main_file *fi); -void file_read(struct main_file *fi, byte *buf, uns len); -void file_write(struct main_file *fi, byte *buf, uns len); +void file_read(struct main_file *fi, void *buf, uns len); +void file_write(struct main_file *fi, void *buf, uns len); void file_set_timeout(struct main_file *fi, sh_time_t expires); /* Hooks to be called in each iteration of the main loop */ -- 2.39.5