From: Martin Mares Date: Thu, 8 Apr 2004 21:16:16 +0000 (+0000) Subject: Read and write functions accept void pointers instead of byte*. X-Git-Tag: holmes-import~1088 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=eac8d1b596c3368c5c5d8f95962e0e9bbed05c9d;p=libucw.git Read and write functions accept void pointers instead of byte*. --- 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 */