]> granicus.if.org Git - ipset/commit
ipset: turn Set name[] into a const pointer
authorHolger Eitzenberger <holger@eitzenberger.org>
Mon, 24 Jan 2011 21:36:32 +0000 (22:36 +0100)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Tue, 25 Jan 2011 20:11:57 +0000 (21:11 +0100)
commitba623ef3b9ce8f2a92f0f1e47163468932816ab3
tree627db653f2265d514fd2d504c25ede1cca358695
parentd3b9fa094d693f05a747eda21db715a5bbf8dbbc
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>
include/libipset/types.h
lib/types.c