summaryrefslogtreecommitdiffstats
path: root/audio/mp3val/fix_compile_warnings.diff
blob: ebe09e8d456807debdddf8036b12643072eb198a (plain)
diff -Naur mp3val-0.1.8-src/report.cpp mp3val-0.1.8-src.patched/report.cpp
--- mp3val-0.1.8-src/report.cpp	2009-06-25 16:14:35.000000000 -0400
+++ mp3val-0.1.8-src.patched/report.cpp	2014-09-21 15:24:24.000000000 -0400
@@ -25,9 +25,9 @@
 
 extern bool bSuppressInfo;
 
-int PrintMessage(ostream *out,char *caption,char *filename,char *message,int iErrorFrame);
+int PrintMessage(ostream *out,const char *caption,const char *filename,const char *message,int iErrorFrame);
 
-int PrintReport(ostream *out,char *filename,MPEGINFO *mpginfo) {
+int PrintReport(ostream *out,const char *filename,MPEGINFO *mpginfo) {
 	int frame_types=0;
 	int mpeg_total;
 	int tags_total;
@@ -228,7 +228,7 @@
 
 }
 
-int PrintMessage(ostream *out,char *caption,char *filename,char *message,int iErrorFrame) {
+int PrintMessage(ostream *out,const char *caption,const char *filename,const char *message,int iErrorFrame) {
 	(*out)<<caption<<": ";
 	if(iErrorFrame>=0) {
 		(*out)<<"\""<<filename<<"\" (offset 0x"<<hex<<iErrorFrame<<dec<<"): ";
diff -Naur mp3val-0.1.8-src/report.h mp3val-0.1.8-src.patched/report.h
--- mp3val-0.1.8-src/report.h	2009-06-25 16:14:38.000000000 -0400
+++ mp3val-0.1.8-src.patched/report.h	2014-09-21 15:24:15.000000000 -0400
@@ -26,7 +26,7 @@
 
 #include "mpegparse.h"
 
-int PrintReport(ostream *out,char *filename,MPEGINFO *mpginfo);
-int PrintMessage(ostream *out,char *caption,char *filename,char *message,int iErrorFrame);
+int PrintReport(ostream *out,const char *filename,MPEGINFO *mpginfo);
+int PrintMessage(ostream *out,const char *caption,const char *filename,const char *message,int iErrorFrame);
 
 #endif