From 12f8ae06e4c9f601863b91a8a56a954ea715a0aa Mon Sep 17 00:00:00 2001 From: "7u83@mail.ru" <7u83@mail.ru@noemail.net> Date: Sun, 13 Mar 2016 08:45:56 +0000 Subject: [PATCH] Some minor fixes. FossilOrigin-Name: 7b67259c0ecf3cd9dc350aa9619f2d441eabbce87aa848de0d51ea91c159c0e2 --- src/cw/mod.c | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/src/cw/mod.c b/src/cw/mod.c index 018bb5ee..fff396a4 100644 --- a/src/cw/mod.c +++ b/src/cw/mod.c @@ -1,3 +1,26 @@ +/* + This file is part of actube. + + actube is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + libcapwap is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with Foobar. If not, see . + +*/ + +/** + * @file + * @brief Functions for mods + */ + #include #include "action.h" @@ -18,6 +41,10 @@ static int mod_null_register_actions(struct cw_actiondef *def,int mode) { return 0; } + +/** + * mod_null + */ struct mod_ac mod_null={ .name="none", .register_actions=mod_null_register_actions @@ -26,7 +53,7 @@ struct mod_ac mod_null={ -int cmp(const void *p1, const void *p2) +static int cmp(const void *p1, const void *p2) { struct cache_item * c1 = (struct cache_item *)p1; struct cache_item * c2 = (struct cache_item *)p2;