Skip to content

Commit 802e71b

Browse files
committed
Add const attribute to lsame
1 parent e671d03 commit 802e71b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

kernel/generic/lsame.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838

3939
#include <ctype.h>
4040

41-
int NAME(char *A, char *B){
41+
int NAME(const char *A, const char *B){
4242

4343
char a = *A;
4444
char b = *B;

lapack-netlib/LAPACKE/include/lapack.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ typedef lapack_logical (*LAPACK_Z_SELECT2)
115115
( const lapack_complex_double*, const lapack_complex_double* );
116116

117117
#define LAPACK_lsame_base LAPACK_GLOBAL(lsame,LSAME)
118-
lapack_logical LAPACK_lsame_base( char* ca, char* cb,
118+
lapack_logical LAPACK_lsame_base( const char* ca, const char* cb,
119119
lapack_int lca, lapack_int lcb
120120
#ifdef LAPACK_FORTRAN_STRLEN_END
121121
, size_t, size_t

0 commit comments

Comments
 (0)