aboutsummaryrefslogtreecommitdiff
path: root/libsylph
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-09-02 10:31:10 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-09-02 10:31:10 +0000
commit02a672d5bfa50cad8ab5cb047125c708c68176ab (patch)
tree455d2e2127fb9f8337a7218ab054e47491a18813 /libsylph
parent67fecb1232183bad2ac2eec436c8affd4c3e49f7 (diff)
fixed signedness warnings.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@544 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'libsylph')
-rw-r--r--libsylph/html.c2
-rw-r--r--libsylph/session.c6
-rw-r--r--libsylph/unmime.c5
3 files changed, 7 insertions, 6 deletions
diff --git a/libsylph/html.c b/libsylph/html.c
index 7ba2acd3..842dae2e 100644
--- a/libsylph/html.c
+++ b/libsylph/html.c
@@ -307,7 +307,7 @@ static HTMLTag *html_get_tag(const gchar *str)
{
HTMLTag *tag;
gchar *tmp;
- guchar *tmpp;
+ gchar *tmpp;
g_return_val_if_fail(str != NULL, NULL);
diff --git a/libsylph/session.c b/libsylph/session.c
index 6e7fa4e9..aac7f9c4 100644
--- a/libsylph/session.c
+++ b/libsylph/session.c
@@ -569,7 +569,7 @@ static gboolean session_read_data_cb(SockInfo *source, GIOCondition condition,
if (session->read_buf_len == 0)
return TRUE;
- g_byte_array_append(data_buf, session->read_buf_p,
+ g_byte_array_append(data_buf, (guchar *)session->read_buf_p,
session->read_buf_len);
session->read_buf_len = 0;
@@ -614,7 +614,7 @@ static gboolean session_read_data_cb(SockInfo *source, GIOCondition condition,
data_len = data_buf->len - terminator_len;
/* callback */
- ret = session->recv_data_finished(session, (gchar *)data_buf->data,
+ ret = session->recv_data_finished(session, (guchar *)data_buf->data,
data_len);
g_byte_array_set_size(data_buf, 0);
@@ -684,7 +684,7 @@ static gint session_write_data(Session *session)
(session->write_data_p - session->write_data);
to_write_len = MIN(to_write_len, SESSION_BUFFSIZE);
- write_len = sock_write(session->sock, session->write_data_p,
+ write_len = sock_write(session->sock, (gchar *)session->write_data_p,
to_write_len);
if (write_len < 0) {
diff --git a/libsylph/unmime.c b/libsylph/unmime.c
index 23d787a3..27267b13 100644
--- a/libsylph/unmime.c
+++ b/libsylph/unmime.c
@@ -99,14 +99,15 @@ gchar *unmime_header(const gchar *encoded_str)
if (encoding == 'B') {
decoded_text = g_malloc
(eword_end_p - (text_begin_p + 1) + 1);
- len = base64_decode(decoded_text, text_begin_p + 1,
+ len = base64_decode((guchar *)decoded_text,
+ text_begin_p + 1,
eword_end_p - (text_begin_p + 1));
decoded_text[len] = '\0';
} else if (encoding == 'Q') {
decoded_text = g_malloc
(eword_end_p - (text_begin_p + 1) + 1);
len = qp_decode_q_encoding
- (decoded_text, text_begin_p + 1,
+ ((guchar *)decoded_text, text_begin_p + 1,
eword_end_p - (text_begin_p + 1));
} else {
g_string_append_len(outbuf, p, eword_end_p + 2 - p);