Newer gcc complains about these, e.g.
interactive.c:149:13: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier]
const char const *delim = "\t\n\f\r\v ";
^~~~~
With the patch applied, the tree compiles cleanly, at least with
gcc-7.4.0 and gcc-8.3.0.
*/
struct atom {
/** The name of the directive. */
- const char const *name;
+ const char *name;
/** Its type. */
enum atom_type type;
};
static int exec_interactive_command(char *line)
{
- const char const *delim = "\t\n\f\r\v ";
+ const char *delim = "\t\n\f\r\v ";
int i;
char *cmd, *args;
int ret = -E_SYNTAX;
static FILE *output_file;
-__printf_1_2 static int output(const char const *fmt, ...)
+__printf_1_2 static int output(const char *fmt, ...)
{
va_list argp;
int ret;