daemon: Constify argument of two functions.