alarm: Don't use deprecated functions.