From ba623ef3b9ce8f2a92f0f1e47163468932816ab3 Mon Sep 17 00:00:00 2001 From: Holger Eitzenberger Date: Mon, 24 Jan 2011 22:36:32 +0100 Subject: 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 Signed-off-by: Jozsef Kadlecsik --- include/libipset/types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/libipset/types.h') 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 */ -- cgit v1.2.3