diff options
author | Holger Eitzenberger <holger@eitzenberger.org> | 2011-01-24 22:36:32 +0100 |
---|---|---|
committer | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2011-01-25 21:11:57 +0100 |
commit | ba623ef3b9ce8f2a92f0f1e47163468932816ab3 (patch) | |
tree | 627db653f2265d514fd2d504c25ede1cca358695 /include/libipset | |
parent | d3b9fa094d693f05a747eda21db715a5bbf8dbbc (diff) |
ipset: turn Set name[] into a const pointer
Also check for the name length.
Note that passing errno values back is not done consistently at
various place, as there are some functions which set errno manually,
others pass -errno back. I use the -errno approach here, as it is
slightly shorter.
Signed-off-by: Holger Eitzenberger <holger@eitzenberger.org>
Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Diffstat (limited to 'include/libipset')
-rw-r--r-- | include/libipset/types.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/libipset/types.h b/include/libipset/types.h index f9c8f2d..d8973db 100644 --- a/include/libipset/types.h +++ b/include/libipset/types.h @@ -70,7 +70,7 @@ struct ipset_elem { * but for the readability the full list is supported. */ struct ipset_type { - char name[IPSET_MAXNAMELEN]; /* type name */ + const char *name; uint8_t revision; /* revision number */ uint8_t family; /* supported family */ uint8_t dimension; /* elem dimension */ |