]> mj.ucw.cz Git - libucw.git/commitdiff
Main recio: Added const keyword to rec_io_write().
authorPavel Charvat <pchar@ucw.cz>
Sun, 11 Feb 2018 16:09:55 +0000 (17:09 +0100)
committerPavel Charvat <pchar@ucw.cz>
Sun, 11 Feb 2018 16:09:55 +0000 (17:09 +0100)
ucw/main-rec.c
ucw/mainloop.h

index f85aa4aacd935fa85f38159241b361505c13427f..7279d99d2a00edeb47dde42293fc994dc57e5a4e 100644 (file)
@@ -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;
index 8fd2e6edee3be1e67bb16b73a0dd1f231d8bc2bf..03ebec6ef0b7b4f7e9cecb4ee280264640a69425 100644 (file)
@@ -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,