remote.c: rearrange xcalloc arguments