Fix warnings in d1_both.c [from 0.9.8-stable].