cmd: Use correct type instead of void* for prev_context field of BATCH_CONTEXT struct.