summaryrefslogtreecommitdiff
path: root/apps/filetypes.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/filetypes.c')
-rw-r--r--apps/filetypes.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/filetypes.c b/apps/filetypes.c
index bda7018381..e992b86060 100644
--- a/apps/filetypes.c
+++ b/apps/filetypes.c
@@ -604,9 +604,9 @@ int filetype_get_icon(int attr)
604 return filetypes[index].icon; 604 return filetypes[index].icon;
605} 605}
606 606
607char* filetype_get_plugin(const struct entry* file, char *buffer, size_t buffer_len) 607char* filetype_get_plugin(int attr, char *buffer, size_t buffer_len)
608{ 608{
609 int index = find_attr(file->attr); 609 int index = find_attr(attr);
610 if (index < 0 || !buffer) 610 if (index < 0 || !buffer)
611 return NULL; 611 return NULL;
612 struct file_type *ft_indexed = &filetypes[index]; 612 struct file_type *ft_indexed = &filetypes[index];