Don't use C99 mid-block declarations and don't do arithmetic on void *.