]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: stktable: provide an unchecked version of stktable_data_ptr()
authorWilly Tarreau <w@1wt.eu>
Thu, 20 Sep 2018 09:06:33 +0000 (11:06 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 20 Sep 2018 09:42:15 +0000 (11:42 +0200)
commitbabc15e8cfa4fc6f633d45e66fea24922964413d
tree6e1018ec04d1be5b8256cf00ccf2d6bc3f65a7dd
parentc2b7f80a91ed01f78aa22b3e2afeda0672501e0c
MINOR: stktable: provide an unchecked version of stktable_data_ptr()

stktable_data_ptr() currently performs null pointer checks but most
callers don't check the result since they know by construction that
it cannot be null. This causes valid warnings when building with
-Wextra which are worth addressing since it will result in better
code. Let's provide an unguarded version of this function for use
where the check is known to be useless and untested.
include/proto/stick_table.h