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/quote_fmt_parse.y | |
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/quote_fmt_parse.y')
-rw-r--r-- | src/quote_fmt_parse.y | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/quote_fmt_parse.y b/src/quote_fmt_parse.y index 93b46314..dab2befd 100644 --- a/src/quote_fmt_parse.y +++ b/src/quote_fmt_parse.y @@ -122,7 +122,7 @@ int quote_fmtwrap(void) static int isseparator(int ch) { - return isspace(ch) || ch == '.' || ch == '-'; + return g_ascii_isspace(ch) || ch == '.' || ch == '-'; } %} @@ -194,14 +194,14 @@ special: | SHOW_FIRST_NAME { if (msginfo->fromname) { - guchar *p; + gchar *p; gchar *str; str = alloca(strlen(msginfo->fromname) + 1); if (str != NULL) { strcpy(str, msginfo->fromname); p = str; - while (*p && !isspace(*p)) p++; + while (*p && !g_ascii_isspace(*p)) p++; *p = '\0'; INSERT(str); } @@ -212,15 +212,15 @@ special: #define MAX_SENDER_INITIAL 20 if (msginfo->fromname) { gchar tmp[MAX_SENDER_INITIAL]; - guchar *p; + gchar *p; gchar *cur; gint len = 0; p = msginfo->fromname; cur = tmp; while (*p) { - if (*p && isalnum(*p)) { - *cur = toupper(*p); + if (*p && g_ascii_isalnum(*p)) { + *cur = g_ascii_toupper(*p); cur++; len++; if (len >= MAX_SENDER_INITIAL - 1) |