Use sizeof *pvar instead of sizeof(vartype) for consistency