From 977fc89867b7f0fa6f8fb0b28054675f0df714b7 Mon Sep 17 00:00:00 2001 From: Ben Date: Mon, 11 Jan 2010 12:11:07 -0500 Subject: [PATCH] Warning fix: Perl-side of the 3 FT data transferers expects char*, not unsigned. --- thft.c | 8 ++++++-- thperl.c | 4 ++-- thperl.h | 4 ++-- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/thft.c b/thft.c index 1bb04c1..dbc489c 100644 --- a/thft.c +++ b/thft.c @@ -370,7 +370,9 @@ thrasher_ui_write(PurpleXfer *xfer, "%d: asked to write %d bytes.\n", id, size); - gssize written_sz = thrasher_wrapper_ft_write(id, buffer, size); + gssize written_sz = thrasher_wrapper_ft_write(id, + (const char*) buffer, + size); purple_debug_info("thrasher ft", "%d: wrote %d bytes.\n", id, @@ -424,7 +426,9 @@ thrasher_data_not_sent(PurpleXfer *xfer, purple_debug_info("thrasher ft", "%d: asked to unread %d bytes.\n", id, size); - thrasher_wrapper_ft_data_not_sent(id, buffer, size); + thrasher_wrapper_ft_data_not_sent(id, + (const char*) buffer, + size); } /* diff --git a/thperl.c b/thperl.c index 4f297d2..018881a 100644 --- a/thperl.c +++ b/thperl.c @@ -1527,7 +1527,7 @@ thrasher_wrapper_ft_read(guint id, void thrasher_wrapper_ft_data_not_sent(guint id, - const guchar *buffer, + const char *buffer, gsize size) { /* @exception buffer cannot be NULL */ g_return_if_fail(buffer != NULL); @@ -1617,7 +1617,7 @@ thrasher_action_ft_recv_request_respond(size_t id, gssize thrasher_wrapper_ft_write(guint id, - const guchar *buffer, + const char *buffer, gssize size) { int written_sz = -1; diff --git a/thperl.h b/thperl.h index 9930a49..973bc45 100644 --- a/thperl.h +++ b/thperl.h @@ -251,9 +251,9 @@ int thrasher_wrapper_ft_send_start(guint id); void thrasher_wrapper_ft_send_cancel(guint id); void thrasher_wrapper_ft_send_complete(guint id); gssize thrasher_wrapper_ft_read(guint id, guchar **buffer, gssize size); -void thrasher_wrapper_ft_data_not_sent(guint id, const guchar *buffer, gsize size); +void thrasher_wrapper_ft_data_not_sent(guint id, const char *buffer, gsize size); void thrasher_wrapper_ft_recv_request(PurpleXfer *xfer, const char* remote_filename); -gssize thrasher_wrapper_ft_write(guint id, const guchar *buffer, gssize size); +gssize thrasher_wrapper_ft_write(guint id, const char *buffer, gssize size); void thrasher_wrapper_ft_recv_cancel(guint id); void thrasher_wrapper_ft_recv_complete(guint id); -- 2.11.4.GIT