Mercurial > pidgin.yaz
changeset 28102:e23c7f6fb32d
nomoreendtags is used as a boolean, so set the variable type appropriately
And add some underscores for readability
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Fri, 31 Jul 2009 08:39:03 +0000 |
parents | 4a213a2b3d3d |
children | 8660d8bc467c |
files | libpurple/protocols/yahoo/util.c |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/yahoo/util.c Fri Jul 31 06:50:34 2009 +0000 +++ b/libpurple/protocols/yahoo/util.c Fri Jul 31 08:39:03 2009 +0000 @@ -339,7 +339,8 @@ char *yahoo_codes_to_html(const char *x) { GString *s, *tmp; - int i, j, xs, nomoreendtags = 0; /* s/endtags/closinganglebrackets */ + int i, j, xs; + gboolean no_more_end_tags = FALSE; /* s/endtags/closinganglebrackets */ char *match; s = g_string_sized_new(strlen(x)); @@ -370,14 +371,14 @@ } } - } else if (!nomoreendtags && (x[i] == '<')) { + } else if (!no_more_end_tags && (x[i] == '<')) { j = i; while (j++ < xs) { if (x[j] != '>') if (j == xs) { g_string_append(s, "<"); - nomoreendtags = 1; + no_more_end_tags = TRUE; } else continue;