view_list: Fixed callback signature and a couple of warnings.