Man imprisoned on firearm charges gets life sentences for two murders