Update replay.c

Clean header