From: Alan T. DeKok Date: Thu, 4 Jan 2018 20:04:57 +0000 (-0500) Subject: char const* for printing X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=707a71b4c2cd6bfed9cc1e384d4ab1fcff39c3e9;p=thirdparty%2Ffreeradius-server.git char const* for printing --- diff --git a/src/lib/util/trie.c b/src/lib/util/trie.c index 5f8b0fb9c74..fb99b8c82fc 100644 --- a/src/lib/util/trie.c +++ b/src/lib/util/trie.c @@ -2410,7 +2410,7 @@ static int command_insert(fr_trie_t *ft, UNUSED int argc, char **argv, UNUSED ch } if (answer != data) { - fprintf(stderr, "Inserted %s, but looked up %s\n", argv[1], answer); + fprintf(stderr, "Inserted %s, but looked up %s\n", argv[1], (char const *) answer); return -1; } @@ -2690,7 +2690,7 @@ static int command_path(fr_trie_t *ft, UNUSED int argc, char **argv, char *out, } if (answer != data) { - fprintf(stderr, "Expected to find %s, got %s\n", argv[1], answer); + fprintf(stderr, "Expected to find %s, got %s\n", argv[1], (char const *) answer); return -1; } @@ -2706,7 +2706,7 @@ static int command_path(fr_trie_t *ft, UNUSED int argc, char **argv, char *out, } if (answer != data) { - fprintf(stderr, "Expected to remove %s, got %s\n", argv[1], answer); + fprintf(stderr, "Expected to remove %s, got %s\n", argv[1], (char const *) answer); return -1; }