diff options
author | Vincent Sanders <vince@kyllikki.org> | 2019-05-06 08:13:00 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2019-05-06 08:13:00 +0100 |
commit | d27027d4ba21921365737e358b3d26e2159488c3 (patch) | |
tree | 702fea4fe956226a9294d12c29bb95b751dc922b | |
parent | 35bc2ccbb89a6b499e0e3b6f7095afea214f0c59 (diff) | |
download | netsurf-d27027d4ba21921365737e358b3d26e2159488c3.tar.gz netsurf-d27027d4ba21921365737e358b3d26e2159488c3.tar.bz2 |
fix type used with content_get_source_data()
-rw-r--r-- | frontends/beos/gui.cpp | 6 |
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"); |