summaryrefslogtreecommitdiff
path: root/frontends
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2019-05-06 08:13:00 +0100
committerVincent Sanders <vince@kyllikki.org>2019-05-06 08:13:00 +0100
commitd27027d4ba21921365737e358b3d26e2159488c3 (patch)
tree702fea4fe956226a9294d12c29bb95b751dc922b /frontends
parent35bc2ccbb89a6b499e0e3b6f7095afea214f0c59 (diff)
downloadnetsurf-d27027d4ba21921365737e358b3d26e2159488c3.tar.gz
netsurf-d27027d4ba21921365737e358b3d26e2159488c3.tar.bz2
fix type used with content_get_source_data()
Diffstat (limited to 'frontends')
-rw-r--r--frontends/beos/gui.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/frontends/beos/gui.cpp b/frontends/beos/gui.cpp
index e9ab9737a..c83bf3f24 100644
--- a/frontends/beos/gui.cpp
+++ b/frontends/beos/gui.cpp
@@ -790,7 +790,7 @@ void nsbeos_gui_poll(void)
if (len == sizeof(void *)) {
NSLOG(netsurf, DEEPDEBUG,
"gui_poll: BMessage.what %-4.4s\n",
- &(message->what));
+ (char *)&(message->what));
nsbeos_dispatch_event(message);
}
}
@@ -834,7 +834,9 @@ void nsbeos_gui_view_source(struct hlcache_handle *content)
BPath path;
status_t err;
size_t size;
- const char *source = content_get_source_data(content, &size);
+ const uint8_t *source;
+
+ source = content_get_source_data(content, &size);
if (!content || !source) {
beos_warn_user("MiscError", "No document source");