diff options
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | ChangeLog.ja | 7 | ||||
-rw-r--r-- | libsylph/html.c | 2 | ||||
-rw-r--r-- | libsylph/session.c | 6 | ||||
-rw-r--r-- | libsylph/unmime.c | 5 |
5 files changed, 21 insertions, 6 deletions
@@ -1,5 +1,12 @@ 2005-09-02 + * src/html.c + src/session.c + src/unmime.c: fixed 'warning: pointer targets in assignment differ + in signedness'. + +2005-09-02 + * src/sourcewindow.c: added missing include. * src/filter.[ch] src/prefs_filter.[ch] diff --git a/ChangeLog.ja b/ChangeLog.ja index 3a30c995..010f027a 100644 --- a/ChangeLog.ja +++ b/ChangeLog.ja @@ -1,5 +1,12 @@ 2005-09-02 + * src/html.c + src/session.c + src/unmime.c: 'warning: pointer targets in assignment differ in + signedness' を修正。 + +2005-09-02 + * src/sourcewindow.c: 抜けていた include を追加。 * src/filter.[ch] src/prefs_filter.[ch] 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); |