diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-08-02 08:24:31 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-08-02 08:24:31 +0000 |
commit | 3ca4175052e8a6c26a6cc93501e92a4436cad3df (patch) | |
tree | cd8c6b5f88ff65d5e74c27638eaaf4ec13572828 /src/compose.c | |
parent | e059bc94965dd6cb4afcff3d5efceec32a98a5a0 (diff) |
fixed gcc-4.0 warnings.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@457 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/compose.c')
-rw-r--r-- | src/compose.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/compose.c b/src/compose.c index 2aa31081..fd3b3fa7 100644 --- a/src/compose.c +++ b/src/compose.c @@ -1509,7 +1509,7 @@ static void compose_reply_set_entry(Compose *compose, MsgInfo *msginfo, if (msginfo->subject && *msginfo->subject) { gchar *buf; - guchar *p; + gchar *p; buf = g_strdup(msginfo->subject); @@ -1518,7 +1518,7 @@ static void compose_reply_set_entry(Compose *compose, MsgInfo *msginfo, while (!g_ascii_strncasecmp(buf, "Re:", 3)) { p = buf + 3; - while (isspace(*p)) p++; + while (g_ascii_isspace(*p)) p++; memmove(buf, p, strlen(p) + 1); } @@ -2867,7 +2867,7 @@ static gint compose_write_to_file(Compose *compose, const gchar *file, for (i = 0; i < len; i += B64_LINE_SIZE) { l = MIN(B64_LINE_SIZE, len - i); - base64_encode(outbuf, buf + i, l); + base64_encode(outbuf, (guchar *)buf + i, l); fputs(outbuf, fp); fputc('\n', fp); } @@ -2876,7 +2876,7 @@ static gint compose_write_to_file(Compose *compose, const gchar *file, size_t outlen; outbuf = g_malloc(len * 4); - qp_encode_line(outbuf, buf); + qp_encode_line(outbuf, (guchar *)buf); outlen = strlen(outbuf); if (fwrite(outbuf, sizeof(gchar), outlen, fp) != outlen) { FILE_OP_ERROR(file, "fwrite"); @@ -3311,12 +3311,13 @@ static void compose_write_attach(Compose *compose, FILE *fp, while ((len = fread(inbuf, sizeof(gchar), B64_LINE_SIZE, tmp_fp)) == B64_LINE_SIZE) { - base64_encode(outbuf, inbuf, B64_LINE_SIZE); + base64_encode(outbuf, (guchar *)inbuf, + B64_LINE_SIZE); fputs(outbuf, fp); fputc('\n', fp); } if (len > 0 && feof(tmp_fp)) { - base64_encode(outbuf, inbuf, len); + base64_encode(outbuf, (guchar *)inbuf, len); fputs(outbuf, fp); fputc('\n', fp); } @@ -3330,7 +3331,7 @@ static void compose_write_attach(Compose *compose, FILE *fp, gchar inbuf[BUFFSIZE], outbuf[BUFFSIZE * 4]; while (fgets(inbuf, sizeof(inbuf), attach_fp) != NULL) { - qp_encode_line(outbuf, inbuf); + qp_encode_line(outbuf, (guchar *)inbuf); fputs(outbuf, fp); } } else { |