diff --git a/src/ua2f-mix.cpp b/src/ua2f-mix.cpp index 0ebc789..b9f9122 100644 --- a/src/ua2f-mix.cpp +++ b/src/ua2f-mix.cpp @@ -1,23 +1,17 @@ -#include -#include #include -#include #include #include #include #include #include extern "C" { -#include #include #include -#include #include #include #include #include #include -#include #include #include #include @@ -427,7 +421,7 @@ static void queue_accept(const int queue_number){ } auto const portid = mnl_socket_get_portid(nl.get()); - unique_ptr buf {new char[sizeof_buf]}; + const unique_ptr buf {new char[sizeof_buf]}; auto nlh = nfq_nlmsg_put(buf.get(), NFQNL_MSG_CONFIG, queue_number); nfq_nlmsg_cfg_put_cmd(nlh, AF_INET, NFQNL_CFG_CMD_BIND); nfq_nlmsg_cfg_put_cmd(nlh, AF_INET6, NFQNL_CFG_CMD_BIND);