mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-08 13:44:56 +02:00
ipset: fixup compile errors with 2.6.18.x and 2.6.20 warnings
This commit is contained in:
@@ -35,7 +35,7 @@ static int limit = MAX_RANGE;
|
|||||||
* to delete the gc timer at destroying/flushing a set */
|
* to delete the gc timer at destroying/flushing a set */
|
||||||
#define IPTREE_DESTROY_SLEEP 100
|
#define IPTREE_DESTROY_SLEEP 100
|
||||||
|
|
||||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,21)
|
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,20)
|
||||||
static struct kmem_cache *branch_cachep;
|
static struct kmem_cache *branch_cachep;
|
||||||
static struct kmem_cache *leaf_cachep;
|
static struct kmem_cache *leaf_cachep;
|
||||||
#else
|
#else
|
||||||
|
@@ -30,7 +30,7 @@
|
|||||||
#define IPTREEMAP_DEFAULT_GC_TIME (5 * 60)
|
#define IPTREEMAP_DEFAULT_GC_TIME (5 * 60)
|
||||||
#define IPTREEMAP_DESTROY_SLEEP (100)
|
#define IPTREEMAP_DESTROY_SLEEP (100)
|
||||||
|
|
||||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,21)
|
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,20)
|
||||||
static struct kmem_cache *cachep_b;
|
static struct kmem_cache *cachep_b;
|
||||||
static struct kmem_cache *cachep_c;
|
static struct kmem_cache *cachep_c;
|
||||||
static struct kmem_cache *cachep_d;
|
static struct kmem_cache *cachep_d;
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
static size_t max_malloc_size = 0, max_page_size = 0;
|
static size_t max_malloc_size = 0, max_page_size = 0;
|
||||||
|
|
||||||
static inline bool init_max_page_size(void)
|
static inline unsigned int init_max_page_size(void)
|
||||||
{
|
{
|
||||||
size_t page_size = 0;
|
size_t page_size = 0;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user