summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2012-08-20 19:50:17 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2012-08-20 19:50:17 +0200
commitedf0fe06c8d6fc826a109a4f60d84828508ad2f9 (patch)
tree59493230fdcac665bb5b7ea22de349c4fc3c9554
parent1eab5bedb6f024e5512d485ffd81d18d978ef3e3 (diff)
examples: nf-queue: fix compilation warning with gcc-4.7
nf-queue.c: In function ‘main’: nf-queue.c:146:12: warning: unused variable ‘id’ [-Wunused-variable] Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rw-r--r--examples/nf-queue.c2
-rw-r--r--src/libnetfilter_queue.c13
2 files changed, 7 insertions, 8 deletions
diff --git a/examples/nf-queue.c b/examples/nf-queue.c
index 8b4b63d..4d56751 100644
--- a/examples/nf-queue.c
+++ b/examples/nf-queue.c
@@ -143,8 +143,6 @@ int main(int argc, char *argv[])
exit(EXIT_FAILURE);
}
while (ret > 0) {
- uint32_t id;
-
ret = mnl_cb_run(buf, ret, 0, portid, queue_cb, NULL);
if (ret < 0){
perror("mnl_cb_run");
diff --git a/src/libnetfilter_queue.c b/src/libnetfilter_queue.c
index dcfc36d..7a60b71 100644
--- a/src/libnetfilter_queue.c
+++ b/src/libnetfilter_queue.c
@@ -63,7 +63,8 @@
* \section Using libnetfilter_queue
*
* To write your own program using libnetfilter_queue, you should start by reading
- * the doxygen documentation (start by \link LibrarySetup \endlink page) and nfqnl_test.c source file.
+ * the doxygen documentation (start by \link LibrarySetup \endlink page) and
+ * nf-queue.c source file.
*
* \section errors ENOBUFS errors in recv()
*
@@ -204,7 +205,7 @@ struct nfnl_handle *nfq_nfnlh(struct nfq_handle *h)
/**
*
- * \defgroup Queue Queue handling
+ * \defgroup Queue Queue handling [DEPRECATED]
*
* Once libnetfilter_queue library has been initialised (See
* \link LibrarySetup \endlink), it is possible to bind the program to a
@@ -282,7 +283,7 @@ int nfq_fd(struct nfq_handle *h)
*/
/**
- * \defgroup LibrarySetup Library setup
+ * \defgroup LibrarySetup Library setup [DEPRECATED]
*
* Library initialisation is made in two steps.
*
@@ -849,7 +850,7 @@ int nfq_set_verdict_mark(struct nfq_q_handle *qh, u_int32_t id,
*************************************************************/
/**
- * \defgroup Parsing Message parsing functions
+ * \defgroup Parsing Message parsing functions [DEPRECATED]
* @{
*/
@@ -860,7 +861,7 @@ int nfq_set_verdict_mark(struct nfq_q_handle *qh, u_int32_t id,
* \return the netfilter queue netlink packet header for the given
* nfq_data argument. Typically, the nfq_data value is passed as the 3rd
* parameter to the callback function set by a call to nfq_create_queue().
- *
+ *
* The nfqnl_msg_packet_hdr structure is defined in libnetfilter_queue.h as:
*
* \verbatim
@@ -1135,7 +1136,7 @@ do { \
} while (0)
/**
- * \defgroup Printing
+ * \defgroup Printing Printing [DEPRECATED]
* @{
*/