# HG changeset patch # User Mark Doliner # Date 1249029543 0 # Node ID e23c7f6fb32dbe244be0a7cf9ac5fa63e83ffde6 # Parent 4a213a2b3d3d733a89fb9fd39372ef9e53f220fd nomoreendtags is used as a boolean, so set the variable type appropriately And add some underscores for readability diff -r 4a213a2b3d3d -r e23c7f6fb32d libpurple/protocols/yahoo/util.c --- 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;