Fix the build of key_ladder_demo under Clang

Clang -Wall -Wincompatible-pointer-types-discards-qualifiers said:
thou shalt not put a string literal in a non-const char*.
This commit is contained in:
Gilles Peskine 2019-01-02 17:25:16 +01:00 committed by Darryl Green
parent 451e24c1d8
commit 738f017c12

View file

@ -620,9 +620,9 @@ static void usage( void )
int main( int argc, char *argv[] ) int main( int argc, char *argv[] )
{ {
char *key_file_name = "master.key"; const char *key_file_name = "master.key";
char *input_file_name = NULL; const char *input_file_name = NULL;
char *output_file_name = NULL; const char *output_file_name = NULL;
const char *ladder[MAX_LADDER_DEPTH]; const char *ladder[MAX_LADDER_DEPTH];
size_t ladder_depth = 0; size_t ladder_depth = 0;
int i; int i;