summaryrefslogtreecommitdiff
path: root/sci-biology/mummer/files/mummer-3.23-fix-c++-qa.patch
blob: d6926c913d4a9e7c736f3e74e3b3fb98715e102b (plain)
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
--- a/src/kurtz/libbasedir/space.c
+++ b/src/kurtz/libbasedir/space.c
@@ -379,7 +379,7 @@
   }
   if(numberofblocks > 0)
   {
-    fprintf(stderr,"space leak: number of blocks = %u\n",numberofblocks);
+    fprintf(stderr,"space leak: number of blocks = %lu\n",numberofblocks);
     exit(EXIT_FAILURE);
   } 
   free(blocks);
--- a/src/tigr/combineMUMs.cc
+++ b/src/tigr/combineMUMs.cc
@@ -106,7 +106,7 @@
     //  This array [i]  is the maximum number of errors allowed
     //  in a match between sequences of length  i , which is
     //  i * MAXERROR_RATE .
-char  * Error_File_Name = DEFAULT_ERROR_FILE_NAME;
+const char  * Error_File_Name = DEFAULT_ERROR_FILE_NAME;
     // Name of file to write gaps listing with # errors in each gap
 int  Fill_Ct = 0;
     // Number of non-acgt bases in ref sequence
@@ -132,7 +132,7 @@
     // The query sequence
 long int  Query_Len;
     // The length of the query sequence
-char  * Query_Suffix = "Query";
+const char  * Query_Suffix = "Query";
     // Suffix for query tag
 char  * Ref = NULL;
     // The reference sequence
@@ -142,7 +142,7 @@
     // The length of the reference sequence
 long int  Ref_Size;
     // The size of the reference sequence buffer
-char  * Ref_Suffix = "Ref";
+const char  * Ref_Suffix = "Ref";
     // Suffix for reference tag
 int  Show_Differences = FALSE;
     // If  TRUE  then show differences in all alignments
--- a/src/tigr/mgaps.cc
+++ b/src/tigr/mgaps.cc
@@ -64,9 +64,9 @@
 static void  Parse_Command_Line
     (int argc, char * argv []);
 static void  Process_Matches
-    (Match_t * A, int N, char * label);
+    (Match_t * A, int N, const char * label);
 static int  Process_Cluster
-    (Match_t * A, int N, char * label);
+    (Match_t * A, int N, const char * label);
 static void  Union
     (int a, int b);
 static void  Usage
@@ -438,7 +438,7 @@
 
 
 static int  Process_Cluster
-    (Match_t * A, int N, char * label)
+    (Match_t * A, int N, const char * label)
 
 //  Process the cluster of matches in  A [0 .. (N - 1)]  and output them
 //  after a line containing  label .  Return the number of clusters
@@ -552,7 +552,7 @@
 
 
 static void  Process_Matches
-    (Match_t * A, int N, char * label)
+    (Match_t * A, int N, const char * label)
 
 //  Process matches  A [1 .. N]  and output them after
 //  a line containing  label .
--- a/src/tigr/show-coords.cc
+++ b/src/tigr/show-coords.cc
@@ -788,7 +788,7 @@
      (vector<AlignStats> Stats)
 {
   time_t currtime;
-  char * type;
+  const char * type;
   char date[MAX_LINE];
   long int len;
   vector<AlignStats>::iterator Sip;