File: fix_compilation

package info (click to toggle)
mkcue 1-9
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 564 kB
  • sloc: sh: 2,618; cpp: 1,746; makefile: 80
file content (64 lines) | stat: -rw-r--r-- 1,785 bytes parent folder | download | duplicates (2)
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
Description: Fix compilation with newer GCC
Author: Moray Allan <moray@debian.org>
Last-Update: 2024-08-02
Index: mkcue-1/diskid.cc
===================================================================
--- mkcue-1.orig/diskid.cc	2024-08-02 11:09:56.704571995 +0100
+++ mkcue-1/diskid.cc	2024-08-02 11:09:56.700571968 +0100
@@ -46,7 +46,7 @@
 {
 }
 
-void DiskId::ReportError(char *err)
+void DiskId::ReportError(const char *err)
 {
    m_errorMsg = string(err);
 }
Index: mkcue-1/diskid.h
===================================================================
--- mkcue-1.orig/diskid.h	2024-08-02 11:09:56.704571995 +0100
+++ mkcue-1/diskid.h	2024-08-02 11:10:36.840846797 +0100
@@ -28,8 +28,6 @@
 
 #include <string>
 
-using namespace std;
-
 //
 //  platform specific stuff
 //
@@ -83,7 +81,7 @@
 
 //                 DiskId(void);
 
-        void  ReportError(char *err);
+        void  ReportError(const char *err);
 
         // This function is OS dependent, and will be implemented by
         // one of the modules in the osdep dir.
Index: mkcue-1/mkcue.cc
===================================================================
--- mkcue-1.orig/mkcue.cc	2024-08-02 11:09:56.704571995 +0100
+++ mkcue-1/mkcue.cc	2024-08-02 11:09:56.700571968 +0100
@@ -16,7 +16,7 @@
 #define MSF_OFFSET 150
 
 void
-DiskId::ReportError(char *err)
+DiskId::ReportError(const char *err)
 {
     fprintf(stderr, "%s\n", err);
     exit(2);
Index: mkcue-1/osdep/mb_linux.h
===================================================================
--- mkcue-1.orig/osdep/mb_linux.h	2024-08-02 11:09:56.704571995 +0100
+++ mkcue-1/osdep/mb_linux.h	2024-08-02 11:09:56.700571968 +0100
@@ -35,7 +35,7 @@
 
 #include <linux/cdrom.h>
 
-typedef char* MUSICBRAINZ_DEVICE;
+typedef const char* MUSICBRAINZ_DEVICE;