chiark / gitweb /
journal: extract duplicated code to a function