]> git.ipfire.org Git - thirdparty/nftables.git/commit
datatype: use mpz_set_str instead of gmp_sscanf
authorSteven Barth <cyrus@openwrt.org>
Tue, 6 Jan 2015 22:40:23 +0000 (23:40 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 7 Jan 2015 12:08:41 +0000 (13:08 +0100)
commit95af7f0a4c87894ef818f248845e1954fa780bec
tree781ab04886a5b1fea94dfa8670b91f34995e0f15
parent5727cb06ce1ff42a855e8994910452c8e3d862e4
datatype: use mpz_set_str instead of gmp_sscanf

This simplifies the integer parsing logic and restricts it to
functions being part of the mini-gmp subset.

Signed-off-by: Steven Barth <cyrus@openwrt.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/datatype.c