]> git.ipfire.org Git - thirdparty/nftables.git/commit
meta: fix compiler warning in date_type_parse()
authorLukas Straub <lukasstraub2@web.de>
Tue, 5 Apr 2022 16:43:30 +0000 (16:43 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 5 Apr 2022 19:59:41 +0000 (21:59 +0200)
commit4460b839b945aeb6eb861012dbe41b76974168f6
treea31928611d96ca55d46d92529f71cdf23836f02c
parent0210097879c0194477183b575867cf8c413a93ef
meta: fix compiler warning in date_type_parse()

After commit 0210097879 ("meta: time: use uint64_t instead of time_t")
there is a compiler warning due to comparison of the return value from
parse_iso_date with -1, which is now implicitly cast to uint64_t.

Fix this by making parse_iso_date take a pointer to the tstamp and
return bool instead.

Fixes: 0210097879 ("meta: time: use uint64_t instead of time_t")
Signed-off-by: Lukas Straub <lukasstraub2@web.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/meta.c