core: use correct argument of type JobResult
logind: remove unused variable
update TODO