path: root/TODO
diff options
authorPhil Sutter <>2017-11-13 15:08:16 +0100
committerPablo Neira Ayuso <>2017-11-16 14:35:35 +0100
commit9200bfc50653612033d58774f422fc20150d3301 (patch)
tree04b81823a43a38cf67fe10b7dd836cbbef85f567 /TODO
parent657fdefc7d5c70056b8738da214d3d78f421b19c (diff)
libnftables: Unexport enum nftables_exit_codes
Apart from SUCCESS/FAILURE, these codes were not used by library functions simply because NOMEM and NONL conditions lead to calling exit() instead of propagating the error condition back up the call stack. Instead, make nft_run_cmd_from_*() return either 0 or -1 on error. Usually errno will then contain more details about what happened and/or there are messages in erec. Calls to exit()/return in main() are adjusted to stay compatible. Signed-off-by: Phil Sutter <> Signed-off-by: Pablo Neira Ayuso <>
Diffstat (limited to 'TODO')
0 files changed, 0 insertions, 0 deletions