1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
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
|