1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-29 03:17:53 -04:00

MIME: get_mime_handler_default: Rename stuff.

Rename local variables opt to type_opt and opt_tree to handler_opt.
This commit is contained in:
Miciah Dashiel Butler Masters 2006-05-05 21:28:05 +00:00 committed by Miciah Dashiel Butler Masters
parent 9337a7993d
commit e6d35d8f31

View File

@ -192,18 +192,18 @@ static struct mime_handler *
get_mime_handler_default(unsigned char *type, int have_x)
{
unsigned char *desc = "";
struct option *opt = get_mime_type_option(type);
struct option *opt_tree = get_mime_handler_option(type, have_x);
struct option *type_opt = get_mime_type_option(type);
struct option *handler_opt = get_mime_handler_option(type, have_x);
if (!opt_tree) return NULL;
if (!handler_opt) return NULL;
/* Try to find some description to assing to @name */
if (opt) desc = opt->value.string;
if (type_opt) desc = type_opt->value.string;
return init_mime_handler(get_opt_str_tree(opt_tree, "program"),
return init_mime_handler(get_opt_str_tree(handler_opt, "program"),
desc, default_mime_module.name,
get_opt_bool_tree(opt_tree, "ask"),
get_opt_bool_tree(opt_tree, "block"));
get_opt_bool_tree(handler_opt, "ask"),
get_opt_bool_tree(handler_opt, "block"));
}