Remove the redundant parameter mtr_t*. Make use of page_has_prev(), page_has_next() whenever possible.
Attach a file by drag & drop or click to upload