summaryrefslogtreecommitdiffstats
path: root/examples/quota_watermark/qw/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/quota_watermark/qw/init.c')
-rw-r--r--examples/quota_watermark/qw/init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/quota_watermark/qw/init.c b/examples/quota_watermark/qw/init.c
index afc13665..c2087218 100644
--- a/examples/quota_watermark/qw/init.c
+++ b/examples/quota_watermark/qw/init.c
@@ -170,5 +170,5 @@ setup_shared_variables(void)
rte_exit(EXIT_FAILURE, "%s\n", rte_strerror(rte_errno));
quota = qw_memzone->addr;
- low_watermark = (unsigned int *) qw_memzone->addr + sizeof(int);
+ low_watermark = (unsigned int *) qw_memzone->addr + 1;
}