Mercurial > hg
changeset 1828:8f7d7c05f275
Small coding style update
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sat, 27 Mar 2010 11:56:49 +0100 |
parents | a2642e56e0de |
children | c059c5c98de6 |
files | mcabber/mcabber/compl.c mcabber/mcabber/modules.c |
diffstat | 2 files changed, 6 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/mcabber/mcabber/compl.c Sat Mar 27 11:35:49 2010 +0100 +++ b/mcabber/mcabber/compl.c Sat Mar 27 11:56:49 2010 +0100 @@ -2,6 +2,7 @@ * compl.c -- Completion system * * Copyright (C) 2005-2010 Mikael Berthe <mikael@lilotux.net> + * Copyright (C) 2009,2010 Myhailo Danylenko <isbear@ukrpost.net> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -67,12 +68,12 @@ // Returns 0, if no more categories can be allocated. // Note, that user should not make any assumptions about id nature, // as it is likely to change in future. -guint compl_new_category (void) +guint compl_new_category(void) { guint i = 0; while ((registered_cats >> i) & 1) i++; - if (i >= sizeof (guint)*8) + if (i >= 8 * sizeof (guint)) return 0; else { guint id = 1 << i; @@ -81,11 +82,11 @@ } } -// compl_del_category (id) +// compl_del_category(id) // Frees reserved id for category. // Note, that for now it not validates its input, so, be careful // and specify exactly what you get from compl_new_category. -void compl_del_category (guint id) +void compl_del_category(guint id) { registered_cats &= ~id; }