The warden of the penitentiary, in removing inmates to and from the penitentiary under an order of court, has the same power as the sheriff in removing inmates to the penitentiary.