summaryrefslogtreecommitdiff
path: root/riscos/filetype.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2016-04-26 15:16:33 +0100
committerVincent Sanders <vince@kyllikki.org>2016-04-26 15:16:33 +0100
commit8fd04922cc25bfd2205881fc5d4220c84b2c6fe0 (patch)
tree807795da126c6d1a7617007016c8cd05ba90e4a3 /riscos/filetype.c
parent6a36d4ec2b6fd8ac52da2c3883b4776aec14ba2d (diff)
downloadnetsurf-8fd04922cc25bfd2205881fc5d4220c84b2c6fe0.tar.gz
netsurf-8fd04922cc25bfd2205881fc5d4220c84b2c6fe0.tar.bz2
update RISC OS frontend to not use the depricated warn_user API
Diffstat (limited to 'riscos/filetype.c')
-rw-r--r--riscos/filetype.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/riscos/filetype.c b/riscos/filetype.c
index 63f8a857d..1a16df0a1 100644
--- a/riscos/filetype.c
+++ b/riscos/filetype.c
@@ -21,6 +21,7 @@
#include <unixlib/local.h>
#include "oslib/mimemap.h"
#include "oslib/osfile.h"
+
#include "content/content.h"
#include "content/fetch.h"
#include "content/hlcache.h"
@@ -28,6 +29,7 @@
#include "utils/config.h"
#include "utils/log.h"
#include "utils/utils.h"
+#include "riscos/gui.h"
/* type_map must be in sorted order by file_type */
struct type_entry {
@@ -73,7 +75,7 @@ const char *fetch_filetype(const char *unix_path)
if (!path) {
LOG("Insufficient memory for calloc");
- warn_user("NoMemory", 0);
+ ro_warn_user("NoMemory", 0);
return "application/riscos";
}
@@ -156,7 +158,7 @@ char *fetch_mimetype(const char *ro_path)
if (!mime) {
LOG("Insufficient memory for calloc");
- warn_user("NoMemory", 0);
+ ro_warn_user("NoMemory", 0);
return 0;
}
@@ -323,7 +325,7 @@ bits ro_filetype_from_unix_path(const char *unix_path)
if (!path) {
LOG("Insufficient memory for calloc");
- warn_user("NoMemory", 0);
+ ro_warn_user("NoMemory", 0);
return osfile_TYPE_DATA;
}