Mercurial > hg
changeset 1857:189c2a5a4e66
Fix coding style in xmpp_helper
author | Myhailo Danylenko <isbear@ukrpost.net> |
---|---|
date | Fri, 02 Apr 2010 02:36:34 +0300 |
parents | 057b514b1f12 |
children | 663cd6c38cdc |
files | mcabber/mcabber/xmpp_helper.c |
diffstat | 1 files changed, 8 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/mcabber/mcabber/xmpp_helper.c Thu Apr 01 21:12:56 2010 +0200 +++ b/mcabber/mcabber/xmpp_helper.c Fri Apr 02 02:36:34 2010 +0300 @@ -77,29 +77,29 @@ static GSList *xmpp_additional_features = NULL; static char *ver, *ver_notavail; -void xmpp_add_feature (const char *xmlns) +void xmpp_add_feature(const char *xmlns) { if (xmlns) { ver = NULL; ver_notavail = NULL; xmpp_additional_features = g_slist_append(xmpp_additional_features, - g_strdup (xmlns)); + g_strdup(xmlns)); } } -void xmpp_del_feature (const char *xmlns) +void xmpp_del_feature(const char *xmlns) { GSList *feature = xmpp_additional_features; while (feature) { if (!strcmp(feature->data, xmlns)) { ver = NULL; ver_notavail = NULL; - g_free (feature->data); + g_free(feature->data); xmpp_additional_features = g_slist_delete_link(xmpp_additional_features, feature); return; } - feature = g_slist_next (feature); + feature = g_slist_next(feature); } } #endif @@ -225,7 +225,7 @@ caps_add_feature("", NS_MUC); // advertise ChatStates only if they aren't disabled if (!settings_opt_get_int("disable_chatstates")) - caps_add_feature("", NS_CHATSTATES); + caps_add_feature("", NS_CHATSTATES); caps_add_feature("", NS_TIME); caps_add_feature("", NS_XMPP_TIME); caps_add_feature("", NS_VERSION); @@ -235,13 +235,13 @@ if (!settings_opt_get_int("iq_last_disable") && (!settings_opt_get_int("iq_last_disable_when_notavail") || status != notavail)) - caps_add_feature("", NS_LAST); + caps_add_feature("", NS_LAST); #ifdef MODULES_ENABLE { GSList *el = xmpp_additional_features; while (el) { caps_add_feature("", el->data); - el = g_slist_next (el); + el = g_slist_next(el); } } #endif