Update daemon.c to use unsafe tree functions where appropriate.
Update daemon.c to use unsafe tree functions where appropriate.

opentechinstitute/commotiond,opentechinstitute/commotiond,opentechinstitute/commotiond