A 20-year-old suburban Syracuse man is expected to be sentenced to two years in prison for accidentally shooting a friend with a rifle.