1.1 --- a/decoder-snd.c Sat Dec 29 14:51:25 2007 +0100
1.2 +++ b/decoder-snd.c Sat Dec 29 14:52:29 2007 +0100
1.3 @@ -643,7 +643,7 @@
1.4 bool RemoteGet(cDiscID *id);
1.5 bool GetLine(char *buff, int size, bool log=true);
1.6 int GetCddbResponse(void);
1.7 - int DoCddbCmd(char *format, ...);
1.8 + int DoCddbCmd(const char *format, ...);
1.9 public:
1.10 cCDDB(void);
1.11 virtual ~cCDDB();
1.12 @@ -706,8 +706,8 @@
1.13 if(net->Connect(MP3Setup.CddbHost,MP3Setup.CddbPort)) {
1.14 int code=GetCddbResponse();
1.15 if(code/100==2) {
1.16 - char *host=getenv("HOSTNAME"); if(!host) host="unknown";
1.17 - char *user=getenv("USER"); if(!user) user="nobody";
1.18 + const char *host=getenv("HOSTNAME"); if(!host) host="unknown";
1.19 + const char *user=getenv("USER"); if(!user) user="nobody";
1.20 code=DoCddbCmd("cddb hello %s %s %s %s\n",user,host,PLUGIN_NAME,PLUGIN_VERSION);
1.21 if(code/100==2) {
1.22 code=DoCddbCmd("proto %d\n",CDDB_PROTO);
1.23 @@ -783,7 +783,7 @@
1.24 return -1;
1.25 }
1.26
1.27 -int cCDDB::DoCddbCmd(char *format, ...)
1.28 +int cCDDB::DoCddbCmd(const char *format, ...)
1.29 {
1.30 va_list ap;
1.31 va_start(ap,format);