non-modified payload arguments are pointer-to-const
authorDavid Fabro <netfilter@meta-dynamic.com>
Thu, 10 Jun 2010 12:54:41 +0000 (14:54 +0200)
committerr.kubiak <r.kubiak@samsung.com>
Mon, 16 Nov 2015 13:12:05 +0000 (14:12 +0100)
commitc7fad76eddc9bc7e0e1519ef15693518059aecf0
tree5a44f4c4ef7110ec67528aaee469349a8831c6e9
parent39f8a9bc522619d835af84abd628ca22a9ed19ae
non-modified payload arguments are pointer-to-const

The payload parameters to nfq_set_verdict(), nfq_set_verdict2(), and
nfq_set_verdict_mark() are not modified by those functions, and
therefore should have datatype pointer-to-const.  This both causes the
source-code to more effectively represent what is the purpose of the
parameter, and eliminates the need to cast away const-ness when calling
the functions with compilers that enforce strict casting.  All existing
calling code should not need modification as pointer-to-X automatically
converts to pointer-to-const-X.

Signed-off-by: David Favro <netfilter@meta-dynamic.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/libnetfilter_queue/libnetfilter_queue.h
src/libnetfilter_queue.c