]> git.ipfire.org Git - thirdparty/libnftnl.git/commit
src: add xfree and use it
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 6 Aug 2013 09:33:45 +0000 (11:33 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 6 Aug 2013 09:33:45 +0000 (11:33 +0200)
commit99d25746b94b602f7b0f2381b73e0f52d11fca31
tree0fa195f88207a21a464c814d3ae3e24d03fba6dd
parent19925e0fbc1d709212ed82fe4e43fe6ef1ec3539
src: add xfree and use it

This patch adds xfree, a replacement of free that accepts
const pointers. This helps to remove ugly castings that you usually
need to calm down gcc.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
14 files changed:
src/chain.c
src/expr.c
src/expr/data_reg.c
src/expr/immediate.c
src/expr/log.c
src/expr/match.c
src/expr/target.c
src/internal.h
src/mxml.c
src/rule.c
src/set.c
src/set_elem.c
src/table.c
src/utils.c