From 088742b3c3208be7fb32d72c0ca94ff7f8d507bf Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Wed, 7 Apr 2010 09:12:46 +0000 Subject: [PATCH] Fix filetype.c. svn path=/trunk/netsurf/; revision=10260 --- riscos/filetype.c | 8 ++++---- riscos/gui.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/riscos/filetype.c b/riscos/filetype.c index 2fac350b3..7c111f996 100644 --- a/riscos/filetype.c +++ b/riscos/filetype.c @@ -250,17 +250,17 @@ int cmp_type(const void *x, const void *y) * \param content The content to examine. * \return The RISC OS filetype corresponding to the content */ -int ro_content_filetype(struct content *content) +int ro_content_filetype(struct hlcache_handle *c) { int file_type; os_error *error; - file_type = ro_content_filetype_from_type(content->type); + file_type = ro_content_filetype_from_type(content_get_type(c)); if (file_type != 0) return file_type; - error = xmimemaptranslate_mime_type_to_filetype(content->mime_type, - (bits *) &file_type); + error = xmimemaptranslate_mime_type_to_filetype( + content_get_mime_type(c), (bits *) &file_type); if (error) return 0xffd; diff --git a/riscos/gui.h b/riscos/gui.h index f7ddedd73..aef4b53e7 100644 --- a/riscos/gui.h +++ b/riscos/gui.h @@ -186,7 +186,7 @@ void ro_gui_hotlist_prepare_entry_dialog(struct node *node); bool ro_gui_hotlist_dialog_apply(wimp_w w); /* in filetype.c */ -int ro_content_filetype(struct content *content); +int ro_content_filetype(struct hlcache_handle *c); int ro_content_filetype_from_type(content_type type); bits ro_filetype_from_unix_path(const char *unix_path);