From: Josh G. <ja...@us...> - 2004-09-08 09:43:58
|
Update of /cvsroot/iptables-p2p/iptables-p2p/kernel In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16269/kernel Modified Files: utils.c utils.h Log Message: more formatting Index: utils.c =================================================================== RCS file: /cvsroot/iptables-p2p/iptables-p2p/kernel/utils.c,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- utils.c 8 Sep 2004 09:13:07 -0000 1.5 +++ utils.c 8 Sep 2004 09:43:49 -0000 1.6 @@ -1,9 +1,9 @@ /* + * $Id$ + * * Tree string handling routines. There are trie based trees. * Copyright (C) 2004 Filipe Almeida <fi...@rn...> * - * $Id$ - * * 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 the * Free Software Foundation; either version 2, or (at your option) any Index: utils.h =================================================================== RCS file: /cvsroot/iptables-p2p/iptables-p2p/kernel/utils.h,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- utils.h 7 Mar 2004 18:05:57 -0000 1.1 +++ utils.h 8 Sep 2004 09:43:49 -0000 1.2 @@ -15,21 +15,28 @@ #ifndef _UTILS_H_ #define _UTILS_H_ -typedef struct treenode_s { - unsigned char c; +/*****************************************************************************/ + +typedef struct treenode_s +{ + unsigned char c; struct treenode_s *child; struct treenode_s *next; - int v; + int v; } treenode; +/*****************************************************************************/ + treenode *fill_strtree(const unsigned char *s, treenode *t, - int v); + int v); int search_strtree(const unsigned char *data, const unsigned char *end, - treenode *node); + treenode *node); void destroy_strtree(treenode *node); +/*****************************************************************************/ + #endif |