riot: fix const qualifier warning