examples: nf-queue: fix compilation warning with gcc-4.7
authorPablo Neira Ayuso <pablo@netfilter.org>
Mon, 20 Aug 2012 17:50:17 +0000 (19:50 +0200)
committerr.kubiak <r.kubiak@samsung.com>
Mon, 16 Nov 2015 13:12:06 +0000 (14:12 +0100)
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>
examples/nf-queue.c
src/libnetfilter_queue.c

index 8b4b63d..4d56751 100644 (file)
@@ -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");
index dcfc36d..7a60b71 100644 (file)
@@ -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]
  * @{
  */