return NULL;
}
-static char *
+static const char *
opt_set_set_option(char *p, struct option *opt)
{
int len;
return NULL;
}
-static char *
+static const char *
opt_set_option(char *var, char *p)
{
int i;
/*
* 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 "
/*
* syntax: view <tab name> = <field1> [ , <field2>, ... ]
*/
-static char *
+static const char *
opt_parse_view(buffer *b)
{
char *err, *view;
/*
* syntax: field <identifier> = <human readable name> [ , <type> ]
*/
-static char *
+static const char *
opt_parse_field(buffer *b)
{
char *err, *field, *name;
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;