Mercurial > ~mikael > mcabber > hg
diff mcabber/mcabber/help.c @ 1729:e6e89b1d7831
Minor style and header updates
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sun, 28 Feb 2010 15:19:27 +0100 |
parents | e489ead6574a |
children | 6abca6000762 |
line wrap: on
line diff
--- a/mcabber/mcabber/help.c Sun Feb 28 14:15:38 2010 +0100 +++ b/mcabber/mcabber/help.c Sun Feb 28 15:19:27 2010 +0100 @@ -168,7 +168,7 @@ fname = g_strdup_printf("%s/hlp_%s.txt", path, arg); else fname = g_strdup_printf("%s/hlp.txt", path); - + channel = g_io_channel_new_file(fname, "r", NULL); if (!channel) @@ -179,7 +179,7 @@ while (TRUE) { gsize endpos; GIOStatus ret; - + ret = g_io_channel_read_line_string(channel, line, &endpos, NULL); if (ret != G_IO_STATUS_NORMAL) // XXX G_IO_STATUS_AGAIN? break; @@ -234,7 +234,7 @@ if (settings_opt_get_int("help_to_current") && CURRENT_JID) jid = CURRENT_JID; - + { // search GSList *hel; @@ -268,7 +268,7 @@ if (g_strstr_len(nstart, len, string)) { gchar *match = g_strndup(nstart, len); - + if (!g_slist_find_custom(matches, match, (GCompareFunc)strcmp)) matches = g_slist_append(matches, match);