An Oktibbeha County man will spend the next five years in a federal prison for possessing a device that turns a pistol into a machine gun.