read_write.[ch]: fix compiler warning