# HG changeset patch # User Mikael Berthe # Date 1269687409 -3600 # Node ID 8f7d7c05f275d090536b99022da5dd294d9c4e6d # Parent a2642e56e0de17292912e4610cbf0464de3bc53b Small coding style update diff -r a2642e56e0de -r 8f7d7c05f275 mcabber/mcabber/compl.c --- 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 + * Copyright (C) 2009,2010 Myhailo Danylenko * * 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; } diff -r a2642e56e0de -r 8f7d7c05f275 mcabber/mcabber/modules.c --- a/mcabber/mcabber/modules.c Sat Mar 27 11:35:49 2010 +0100 +++ b/mcabber/mcabber/modules.c Sat Mar 27 11:56:49 2010 +0100 @@ -1,5 +1,5 @@ /* - * modules.c -- modules handling + * modules.c -- Modules handling * * Copyright (C) 2010 Myhailo Danylenko *