path: root/utils/nfqnl_test.c
diff options
authorDavid Fabro <>2010-06-10 14:54:41 +0200
committerPablo Neira Ayuso <>2010-06-10 14:54:41 +0200
commit6e204c91b6c7ece751331de2fa3fb460bc5edd59 (patch)
tree5a44f4c4ef7110ec67528aaee469349a8831c6e9 /utils/nfqnl_test.c
parent6b4e0a01259a80d91d0eaea01281372b594f05b1 (diff)
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 <> Signed-off-by: Pablo Neira Ayuso <>
Diffstat (limited to 'utils/nfqnl_test.c')
0 files changed, 0 insertions, 0 deletions