fix function declaration for daemon_is_ready()