In the daemon, change all const char * parameters to char *.