changelog: d/control deps and pkg for thunderx
[deb_dpdk.git] / examples / quota_watermark / qwctl / qwctl.c
index eb2f618..29c501c 100644 (file)
@@ -41,7 +41,6 @@
 
 #include <rte_log.h>
 #include <rte_memzone.h>
-#include <rte_ring.h>
 
 #include <cmdline_rdline.h>
 #include <cmdline_parse.h>
@@ -68,7 +67,7 @@ setup_shared_variables(void)
         rte_exit(EXIT_FAILURE, "Couldn't find memzone\n");
 
     quota = qw_memzone->addr;
-    low_watermark = (unsigned int *) qw_memzone->addr + sizeof(int);
+    low_watermark = (unsigned int *) qw_memzone->addr + 1;
 }
 
 int main(int argc, char **argv)