diff-lib.c: constness strengthening