alarm: use proper functions to avoid overwriting env
alarm: use proper functions to avoid overwriting env

Former-commit-id: 6f7a4af43a7549c5f0b67df666ed63dd6804314b [formerly 4378792bda499c3f6fa4b7c0fbdecc818277c247]
Former-commit-id: 255dcf69173d2f3744683c41d3bfb06eb0dbb3f8
haste/ivar2,torhve/ivar2,torhve/ivar2,torhve/ivar2