summaryrefslogtreecommitdiff
path: root/amiga/clipboard.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2011-07-23 14:06:13 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2011-07-23 14:06:13 +0000
commit39e5c04da73139a7b71292e95fc45ea729bcd63e (patch)
treec52076ac8f906da40baa315f397e15060e8044b1 /amiga/clipboard.c
parentcd21f4035f881424d7fa150dd04693de313be841 (diff)
downloadnetsurf-39e5c04da73139a7b71292e95fc45ea729bcd63e.tar.gz
netsurf-39e5c04da73139a7b71292e95fc45ea729bcd63e.tar.bz2
Fix warnings
svn path=/trunk/netsurf/; revision=12616
Diffstat (limited to 'amiga/clipboard.c')
-rwxr-xr-xamiga/clipboard.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/amiga/clipboard.c b/amiga/clipboard.c
index dd566edb8..532ce115d 100755
--- a/amiga/clipboard.c
+++ b/amiga/clipboard.c
@@ -21,15 +21,16 @@
#include "desktop/selection.h"
#include "desktop/textinput.h"
+#include "amiga/bitmap.h"
#include "amiga/clipboard.h"
-#include "amiga/iff_cset.h"
-#include "amiga/options.h"
+#include "amiga/drag.h"
+#include "amiga/filetype.h"
#include "amiga/gui.h"
-#include "amiga/utf8.h"
-#include "amiga/bitmap.h"
+#include "amiga/iff_cset.h"
#include "amiga/iff_dr2d.h"
#include "amiga/menu.h"
-#include "amiga/drag.h"
+#include "amiga/options.h"
+#include "amiga/utf8.h"
#include <proto/iffparse.h>
#include <proto/intuition.h>
@@ -146,7 +147,8 @@ void gui_paste_from_clipboard(struct gui_window *g, int x, int y)
else
{
utf8_from_enc(readbuf,
- ObtainCharsetInfo(DFCS_NUMBER, cset.CodeSet, DFCS_MIMENAME),
+ (const char *)ObtainCharsetInfo(DFCS_NUMBER,
+ cset.CodeSet, DFCS_MIMENAME),
rlen, &clip);
}
@@ -346,7 +348,7 @@ void ami_drag_selection(struct selection *s)
x = gwin->win->MouseX;
y = gwin->win->MouseY;
- if(text_box = ami_text_box_at_point(gwin, &x, &y))
+ if(text_box = ami_text_box_at_point(gwin, (ULONG *)&x, (ULONG *)&y))
{
ami_utf8_clipboard = true;
@@ -419,7 +421,7 @@ bool ami_easy_clipboard_bitmap(struct bitmap *bitmap)
#ifdef WITH_NS_SVG
bool ami_easy_clipboard_svg(struct hlcache_handle *c)
{
- char *source_data;
+ const char *source_data;
ULONG source_size;
if(ami_mime_compare(c, "svg") == false) return false;