From 612f9b5f298cd12dc193101c2bafa36516deb48c Mon Sep 17 00:00:00 2001 From: Pavel Charvat Date: Sun, 11 Feb 2018 17:09:55 +0100 Subject: [PATCH] Main recio: Added const keyword to rec_io_write(). --- ucw/main-rec.c | 4 ++-- ucw/mainloop.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ucw/main-rec.c b/ucw/main-rec.c index f85aa4aa..7279d99d 100644 --- a/ucw/main-rec.c +++ b/ucw/main-rec.c @@ -310,9 +310,9 @@ rec_io_get_buffer(struct main_rec_io *rio) } void -rec_io_write(struct main_rec_io *rio, void *data, uint len) +rec_io_write(struct main_rec_io *rio, const void *data, uint len) { - byte *bdata = data; + const byte *bdata = data; ASSERT(rec_io_is_active(rio)); if (!len) return; diff --git a/ucw/mainloop.h b/ucw/mainloop.h index 8fd2e6ed..03ebec6e 100644 --- a/ucw/mainloop.h +++ b/ucw/mainloop.h @@ -580,7 +580,7 @@ void rec_io_stop_read(struct main_rec_io *rio); /** Analogous to @block_io_set_timeout(). **/ void rec_io_set_timeout(struct main_rec_io *rio, timestamp_t expires_delta); -void rec_io_write(struct main_rec_io *rio, void *data, uint len); +void rec_io_write(struct main_rec_io *rio, const void *data, uint len); /** * An auxiliary function used for parsing of lines. When called in the @read_handler, -- 2.39.2