@@ -17,7 +17,7 @@ will likely not be noticeably faster.
17
17
#define STORAGE_BUFFER_SIZE 5000 // number of bytes for stack buffer
18
18
19
19
// swap(): interchange v[i] and v[j]
20
- static void swap (char * v [], int i , int j ) {
20
+ static void swap (char * * const v , const int i , const int j ) {
21
21
char * temp ;
22
22
23
23
temp = v [i ];
@@ -26,7 +26,7 @@ static void swap(char *v[], int i, int j) {
26
26
}
27
27
28
28
// qsort(): sort v[left]...v[right] into increasing order
29
- static void qsort (char * v [], int left , int right ) {
29
+ static void qsort (char * * const v , const int left , const int right ) {
30
30
int i , last ;
31
31
32
32
if (left >= right ) {
@@ -45,8 +45,9 @@ static void qsort(char *v[], int left, int right) {
45
45
}
46
46
47
47
// bufferedreadlines(): read input lines into a supplied string buffer
48
- static int bufferedreadlines (char * lineptr_buffer [], int lineptr_buffer_size ,
49
- char lines [], int lines_size ) {
48
+ static int bufferedreadlines (char * * const lineptr_buffer ,
49
+ const int lineptr_buffer_size , char * const lines ,
50
+ const int lines_size ) {
50
51
int len , nlines , bufferindex ;
51
52
char line [MAXLEN ];
52
53
0 commit comments