X-Git-Url: https://git.deb.at/?a=blobdiff_plain;f=options.c;h=28aaf7c1268de317c0fd4b8df83d2c8e872a7b5e;hb=6a182e3e9a932830341308eb5fb58eb92f5c3682;hp=a370a30ddd1c7cdb749e2ffd541c562de7db8f98;hpb=4909ba20244f55ee7326a40d751cf6737c2bc2b6;p=pkg%2Fabook.git diff --git a/options.c b/options.c index a370a30..28aaf7c 100644 --- a/options.c +++ b/options.c @@ -50,11 +50,7 @@ static struct option abook_vars[] = { { "autosave", OT_BOOL, BOOL_AUTOSAVE, TRUE }, { "show_all_emails", OT_BOOL, BOOL_SHOW_ALL_EMAILS, TRUE }, - { "emailpos", OT_INT, INT_EMAILPOS, 25 }, - { "extra_column", OT_STR, STR_EXTRA_COLUMN, UL "phone" }, - { "extra_alternative", OT_STR, STR_EXTRA_ALTERNATIVE, UL "-1" }, - { "extrapos", OT_INT, INT_EXTRAPOS, 65 }, - + { "index_format", OT_STR, STR_INDEX_FORMAT, UL " {name:22} {email:40} {phone:12|workphone|mobile}" }, { "mutt_command", OT_STR, STR_MUTT_COMMAND, UL "mutt" }, { "mutt_return_all_emails", OT_BOOL, BOOL_MUTT_RETURN_ALL_EMAILS, TRUE }, @@ -278,7 +274,7 @@ get_token(buffer *b, int options) return NULL; } -static char * +static const char * opt_set_set_option(char *p, struct option *opt) { int len; @@ -317,7 +313,7 @@ opt_set_set_option(char *p, struct option *opt) return NULL; } -static char * +static const char * opt_set_option(char *var, char *p) { int i; @@ -360,7 +356,7 @@ check_options() /* * syntax: set