return NULL;
}
-static char *
+static const char *
opt_set_set_option(char *p, struct option *opt)
{
int len;
/*
* syntax: set <option> = <value>
*/
-static char *
+static const char *
opt_parse_set(buffer *b)
{
char *var, *err;
return opt_set_option(var, b->ptr);
}
-static char *
+static const char *
opt_parse_customfield(buffer *b)
{
return _("customfield: obsolete command - please use the "
static struct {
char *token;
- char * (*func) (buffer *line);
+ const char * (*func) (buffer *line);
} opt_parsers[] = {
{ "set", opt_parse_set },
{ "customfield", opt_parse_customfield }, /* obsolete */
opt_parse_line(char *line, int n, char *fn)
{
int i;
- char *err = NULL;
+ const char *err = NULL;
char *token;
buffer b;